Re: Stumped!

From: Date: Mon, 16 Dec 2002 19:03:28 +0000
Subject: Re: Stumped!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128454@lists.php.net to get a copy of this message
--- 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. The parse error should tell you on exactly which line you had an error, so read those error messages carefully next time. Good luck. Chris

« previous php.general (#128454) next »