How can I combine two mysql queries into one?
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-03-26T15:58:10Z
Indexed on
2010/03/26
16:13 UTC
Read the original article
Hit count: 326
I want to combine these two queries into one:
mysql_query("INSERT INTO categories (name, parent) VALUES ('$name', '$parent')");
mysql_query("UPDATE categories SET child='$child' WHERE ID = $id");
Can it be done?
© Stack Overflow or respective owner