Re: mysql_query
| From: | Phpster | Date: | Mon, 10 Aug 2009 11:49:31 +0000 |
| Subject: | Re: mysql_query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46438@lists.php.net to get a copy of this message | ||
On Aug 10, 2009, at 4:15 AM, "Ron Piggott" <ron.php@actsministries.org> wrote:
I have the syntax mysql_query("INSERT INTO ....);"); If this is successful I want to do update a column in one of my tables $query = "UPDATE ... "; mysql_query($query); How do I test if the INSERT INTO mysql_query, in order to trigger the UPDATE? RonYou could use the REPLACE syntax in mysql http://dev.mysql.com/doc/refman/5.0/en/replace.html Bastien Sent from my iPod