Re: [PHP] mysql upate return false?

2002-08-22 Thread Rasmus Lerdorf
mysql_affected_rows() On Thu, 22 Aug 2002, Randy Johnson wrote: I have a function update_trans(); in a mysql_query() that processes an update, what could i check for to see if it was successful or not. The update only updates 1 row. Thanks Randy -- PHP General Mailing List

Re: [PHP] mysql upate return false?

2002-08-22 Thread Adam Williams
mysql_query($sql_statement) or die (Couldn't run UPDATE statement); Adam On Thu, 22 Aug 2002, Randy Johnson wrote: I have a function update_trans(); in a mysql_query() that processes an update, what could i check for to see if it was successful or not. The

Re: [PHP] mysql upate return false?

2002-08-22 Thread Randy Johnson
] To: Randy Johnson [EMAIL PROTECTED] Cc: Rodrigo Peres [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 10:52 AM Subject: Re: [PHP] mysql upate return false? mysql_affected_rows() On Thu, 22 Aug 2002, Randy Johnson wrote: I have a function update_trans

Re: [PHP] mysql upate return false?

2002-08-22 Thread Rasmus Lerdorf
- Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED] Cc: Rodrigo Peres [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 10:52 AM Subject: Re: [PHP] mysql upate return false? mysql_affected_rows() On Thu, 22 Aug 2002