Re: Stumped!
| From: | Chris Shiflett | Date: | Mon, 16 Dec 2002 19:07:16 +0000 |
| Subject: | Re: Stumped! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128458@lists.php.net to get a copy of this message | ||
--- Chris Shiflett <shiflett@php.net> wrote:
> --- CSParker1@aol.com wrote:
> > I keep getting a parser error and I can't figure
> > it out. Here is the code and any help is greatly
> > appreciated.
> >
> > $sql = "SELECT * FROM requests";
> >
> > while ($result = mysql_fetch_array($query))
>
> While this is not related to your parse error, it is a
> major logic flaw, as mysql_fetch_array() takes a result
> set
> as an argument, not an SQL statement.
>
> > echo ("<a
> href=\"edit.php?id='$id'\">$meetingName</a><P>");
>
> This is your parse error. Get rid of the parentheses.
Actually, the parse error is that you never close the while
loop. Still, the error message would point you in the right
direction.
Chris