Reputation:
I'm trying to execute two SQL statements in one mysql_query.
$mySql = mysql_query("SELECT itemid, points FROM items WHERE id='1' UPDATE accounts SET userpoints = '1000'");
Is this possible? Thanks!
Upvotes: 1
Views: 381
Reputation: 42306
I wouldn't try doing that since you won't be able to exploit the results from the different queries (returned values, mysql_insert_id(), ...)
Upvotes: 0