Nairb Posted June 9, 2003 Share Posted June 9, 2003 I\'m making a CMS which works from MySQL. right now I\'m just starting off with some simple commands to call the template from the database but it gives me this error (even though everything shows up correctly): Parse error: parse error, unexpected T_LNUMBER in /home/eefactor/public_html/nairb/index.php(38) : eval()\'d code on line 1 line 38 is: [php:1:3b12f0a7dc] $sql2 = \"SELECT `name` , `template` FROM `templates` WHERE `name` = \'header\'\"; $query2 = mysql_query($sql2) or die (mysql_error()); while($row2 = mysql_fetch_array($query2)) { $header = $row2[\"template\"]; $header = stripslashes($header); eval (\"$header = \"$header\";\"); // ##### line 38 ##### }[/php:1:3b12f0a7dc] Thanks for any help Quote Link to comment https://forums.phpfreaks.com/topic/559-help-please/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.