I am making a form where the user inserts the data and the same one receives the confirmation along with an ID record in php with sql, I am just not getting this final confirmation along with the id, can anyone help me?
I know that mysql is like this.
$exec_sql = mysql_query($select);
if (!$exec_sql) {
print mysql_error();
}
else {
$id = mysql_insert_id();
print '<h3>Registro #'.$id.' inserido com sucesso</h3>';
But what about sql?