PHP4/PHP3 incompatability
| From: | Jack Slocum | Date: | Fri, 17 Dec 1999 22:29:43 +0000 |
| Subject: | PHP4/PHP3 incompatability | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8105@lists.php.net to get a copy of this message | ||
This message was sent from Geocrawler.com by "Jack Slocum" <slocum@pacbell.net>
Be sure to reply to that address.
Is there any reason why this works in PHP3 and
not php4? I have alot of code to update if this
is not a bug:
if($row = mysql_fetch_array($rs))
{
$recordId = $row["recordId"];
}
else
{
echo "Record not found";
}
Under php3 this is a valid way to check to see if
your query return any results and fetch the row
all in one step. In php4 it throws the following
error:
Warning: Supplied argument is not a valid MySQL
result resource in db.php on line 27
Is this a bug or a new feature? :-)
Jack
Geocrawler.com - The Knowledge Archive