--- 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
> as an argument, not an SQL statement.
> > echo ("<a
> 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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php