Jump to content

help with mysql_query() statement...


kathas

Recommended Posts

simple answer:  no.

mysql_query() only takes one query at a time, and you cannot separate SQL statements with a semi-colon.  as i think projectfear was implying, if you want to run two queries for one resultset, blend your queries.
no, it isn't possible.  and i can't see any reason why you wouldnt want to do so, unless you're updating with the results of a SELECT, in which case you'd use a subquery (if they are supported).

either way, i don't think you have any reason to merge the SELECT and UPDATE.  run them separately.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.