Hi there,
I have a php code that inputs a row into an auto-incremented sql table. Is there a quck way to get the id assed to this row that I am inserting into?
I have something like:
I have a php code that inputs a row into an auto-incremented sql table. Is there a quck way to get the id assed to this row that I am inserting into?
I have something like:
Code:
$sql = "INSERT INTO move_status SET status='new', date='$date', date_raw='$date_raw'";
if (@mysql_query($sql)) {
view_moving_leads();
}
else {
echo ( mysql_error() );
}