I hate to do this - Parse error...

From: Date: Sat, 27 Jul 2002 06:29:06 +0000
Subject: I hate to do this - Parse error...
Groups: php.general 
Request: Send a blank email to php-general+get-109933@lists.php.net to get a copy of this message
Sorry, I really have tried to fix this. I get a parse error on line 24(see comment in script) *Any Way* Here is the script. function view_post($tid){ $query = 'select forum_post.name, forum_post.time, forum_post.uid, forum_post.message, priv_user.username from forum_post, priv_user where forum_post.uid = priv_user.uid AND forum_post.tid = '.$tid.'; $result = mysql_query($query) or die("Query failed: $query<br>" . mysql_error()); $num_results = mysql_num_rows($result); for ($i=0; $i < $num_results; $i++) { $row = mysql_fetch_array($result); echo $row['name'].' '.date('jS-M-Y',$row['time']).' '.$row['username']."\n<br>"; // Parse error here - line 24 echo $row['message']."\n<br>"; } } I am getting really frustrated. I know I really shouldn't use the mailing list for debugging. My editors not showing anything obvious with syntax highlighting. -- JJ Harrison webmaster@tececo.com www.tececo.com

« previous php.general (#109933) next »