Re: Parse Error(newbie)

From: Date: Wed, 29 May 2002 13:19:57 +0000
Subject: Re: Parse Error(newbie)
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-99710@lists.php.net to get a copy of this message
Line 81 is $query. I showed it in my first email. I suspect this line is the one causing the trouble(It is about four lines above the start of the function and is the only previous PHP statement) mysql_query("delete from conf_event where time < ( time() ); ----- Original Message ----- From: "Jason Wong" <php-general@gremlins.com.hk> To: <php-general@lists.php.net> Sent: Wednesday, May 29, 2002 11:11 PM Subject: Re: [PHP] Parse Error(newbie) > On Wednesday 29 May 2002 21:13, webmaster@tececo.com wrote: > > Here is the function: > > > > function print_new_story(){ > > $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; > > $result = mysql_query($query); > > $num_results = mysql_num_rows($result); > > > > for ($i=0; $i < $num_results; $i++) > > { > > $row = mysql_fetch_array($result); > > echo '<h2><a href="#">: '; > > echo $row['title']; > > if(!$row['date'] == 0){ > > echo ' - '; > > echo date("d-M-y", $row['date']); > > } > > echo ' :</a></h2><br>'; > > include $row['int_location']; > > } > > > > } > > > > and here is the error message: > > Parse error: parse error in \\johnh\c\co2 busters\includes\functions.php on > > line 81 > > We're not mind readers, which is line 81? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Would it help if I got out and pushed? > -- Princess Leia Organa > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#99710) next »