PHP interesse |
|
Wie zou mij kunnen vertellen wat hier fout aan is en hoe ik dit dien op te lossen
// layout instellingen header.php
$dbr = mysql_query("SELECT * FROM `leden` WHERE `id`='{$_SESSION['gid']}'");
$usr = mysql_fetch_assoc($dbr);
if($usr['layout'] == '') { $usr['layout'] = 001; }
require_once 'inc/header'.$usr['layout'].'.php';
// layout instellingen header.php $dbr = mysql_query("SELECT * FROM `leden` WHERE `id`='{$_SESSION['gid']}'"); if($usr['layout'] == '') { $usr['layout'] = 001; } require_once 'inc/header'.$usr['layout'].'.php';
De error die ik krijg is:
Warning: main(inc/header1.php) [function.main]: failed to open stream: No such file or directory in /home/vhosts/naam.com/httpdocs/site/index.php on line 36
Fatal error: main() [function.require]: Failed opening required 'inc/header1.php' (include_path='.:/usr/share/pear') in /home/vhosts/naam.com/httpdocs/site/index.php on line 36
Warning : main (inc /header1 .php ) [function.main ]: failed to open stream : No such file or directory in /home /vhosts /naam .com /httpdocs /site /index .php on line 36 Fatal error: main() [function.require]: Failed opening required 'inc/header1.php' (include_path='.:/usr/share/pear') in /home/vhosts/naam.com/httpdocs/site/index.php on line 36
Uit de fout wordt duidelijk dat inc/header1.php wordt geprobeert om te openen. In de database staat echter geen 1 ( achter de header ) maar 001.
Het gekke is dat wanneer ik ervan maak inc/header00.php, ik vervolgens de foutmelding krijg de het bestand: inc/header00001.php niet kan worden geopend.
Alvast bedankt,
|