
August 29th, 1999, 05:45 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
This is most likely a stupid question, but i am attempting to assign the result of a mysql_query to a variable, and it is giving me a parse error on the line where i try that
: submitNum = $myrow["submitnum"];
here is what i have:
$result = mysql_query("SELECT * FROM bbbforum");
if ($myrow = mysql_fetch_array($result)) {
do {
if ($myrow["submitnum"] > submitNum)
submitNum = $myrow["submitnum"];
} while ($myrow = mysql_fetch_array($result));
} else {
echo "Error: No records found";
}
i'm just trying to get the highest # in the submitnum field...
|