On Aug 10, 2009, at 4:15 AM, "Ron Piggott"
<ron.php@xxxxxxxxxxxxxxxxxx> 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?
Ron
You could use the REPLACE syntax in mysql
http://dev.mysql.com/doc/refman/5.0/en/replace.html
Bastien
Sent from my iPod
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php