Reply
Parser Error From 4-18-06 Post
Old 04-19-2006, 11:07 AM Parser Error From 4-18-06 Post
Experienced Talker

Posts: 37
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??
bmalex is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-19-2006, 12:17 PM Re: Parser Error From 4-18-06 Post
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
This code is really really ugly. You should not be eval'ing include statements. Anyhow try changing the second line to this:

PHP Code:
$string "include('grey_booth.php;')"
__________________
Did I help you? If so, be nice and throw me some TP
dk01 is offline
Reply With Quote
View Public Profile Visit dk01's homepage!
 
Reply     « Reply to Parser Error From 4-18-06 Post
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12038 seconds with 12 queries