--- Chris Shiflett <[EMAIL PROTECTED]> wrote:
> --- [EMAIL PROTECTED] 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

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

Reply via email to