|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-06 09:57 UTC] jpm@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Here is the code: $SQL = "UPDATE tblAsset SET fldAssetId = 2, fldAssetCode = 'bc04495' WHERE fldAssetId = 2"; $result = mysql_query("$SQL"); if (!$result) { echo("ERROR: " . mysql_error() . "$SQL"); } mysql_free_result ($result); Here is the error: Warning: Supplied argument is not a valid MySQL result resource in /var/www/html/itss/ProcessAsset.php on line 3 If an UPDATE doesn't produce a positive $result, why does the first error check produce an error ?