Re: note 24442 added to function.mysql-db-query

From: Date: Fri, 16 Aug 2002 19:01:55 +0000
Subject: Re: note 24442 added to function.mysql-db-query
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35145@lists.php.net to get a copy of this message
Submit this as a documentation bug or as a mysql function bug so the doc or devel team know about this. The notes is not the place for this info to be, and yours will be removed. Use bugs.php.net --- riondluz@adelphia.net wrote: > +++++++++++++++++ > 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 > -- > http://www.php.net/manual/en/function.mysql-db-query.php > http://master.php.net/manage/user-notes.php?action=edit+24442 > http://master.php.net/manage/user-notes.php?action=delete+24442 > http://master.php.net/manage/user-notes.php?action=reject+24442 > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com

« previous php.notes (#35145) next »