[PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Colin Davis
, mysql_query() returns a resource on success, or FALSE on error. For other type of SQL statements, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error. Regards Colin Davis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Colin Davis
Thank you, that is perfect. Regards Colin Davis http://www.ukpages.org Johan Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.php.net/manual/en/function.mysql-insert-id.php This will give you the record id of the last record inserted (or created). Johan Martin