note 24442 rejected from function.mysql-db-query by jmcastagnetto

From: Date: Fri, 16 Aug 2002 19:02:08 +0000
Subject: note 24442 rejected from function.mysql-db-query by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35146@lists.php.net to get a copy of this message
+++++++++++++++++ ceo@l-i-e.com 22-Sep-1999 02:27 Like mysql_query, only select queries return a result identifier. Insert/update/delete queries return true/false to indicate success/failure ++++++++++++++++++++++++ this was true enough when i was running php4.1.2, but after I upgraded to 4.2.2 I/U/D queries seem to only return !1 even when successfully I/U/D'ing the entry. This is playing havoc on all apps I've installed that do something like: if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, ' db Error creating new insert'); } Any input on a fix? TIA

« previous php.notes (#35146) next »