|
Greetings Forum,
Can someone help me figure out this syntax error?? Skorch suggested this fix and
when I use.............
<?php
$string = "include('grey_booth.php')";
$query = "select * from client where booth_color='$booth_color' ";
$result = mysql_query($query);
if(mysql_num_rows($result) == 1)
if(!$result)
{
echo mysql_error().'<br>';
echo "Error - Could not get asset information from database.";
mysql_close();
exit;
}
$row = mysql_fetch_object($result);
eval($string);
?>
I get this error message
Parse error: syntax error, unexpected $end in /www/l/legalcareerf/htdocs/show_booth.php(140) : eval()'d code on line 1
Any clues as to what I am doing wrong??
|