Re: Parse Error(newbie)

From: Date: Wed, 29 May 2002 13:11:52 +0000
Subject: Re: Parse Error(newbie)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-99707@lists.php.net to get a copy of this message
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 */

« previous php.general (#99707) next »