Jump to content

Help Please


Nairb

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/559-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.