MySQL Forums
Forum List  »  PHP

Re: FOR UPDATE combined in a single query
Posted by: Peter Brawley
Date: February 07, 2013 12:15PM

Re-read the PHP manual page for mysql_query():

if (mysql_query($query)) {
$record = mysql_fetch_array($query);

... is wrong. Fetch funcs require the result resource returned by mysql_query().

I do not understand "Can one read total value from the row with SELECT statement or everything is forbidden in FOR UPDATE case?". "Forbidden" applies to other threads.

Options: ReplyQuote


Subject
Written By
Posted
Re: FOR UPDATE combined in a single query
February 07, 2013 12:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.