//ads: ?> mysql_result is defined but mysql_free_result warns it expected a resourcephpmysql PHP Snippet 1:$result = mysql_query($query); if ($result) { $id = mysql_insert_id(); } else echo mysql_error();