1
I’m making a form where the user inserts the data and the same receives the confirmation along with a ID record in php with sql, I’m just not getting this final confirmation along with the id, someone can help me?
I know that in 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 and in sql?
The code seems correct except for using obsolete functions but what is the problem?
– rray
I believe this code is correct, but subsequent or previous code may contain errors, it would be interesting to post all code. (do not use mysql because it is obsolete with already quoted)
– novic