Jump to content


Photo

Help Please


  • Please log in to reply
No replies to this topic

#1 Nairb

Nairb
  • Members
  • PipPip
  • Member
  • 18 posts
  • LocationCanada

Posted 09 June 2003 - 01:41 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users