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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 11:11 PM
Subject: Re: [PHP] Parse Error(newbie)


> On Wednesday 29 May 2002 21:13, [EMAIL PROTECTED] 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to