per la precisione

mysql_insert_id(): A link to the server could not be established