Hi i have a form (X) that inserts data into a mysql table (A) and than redirects to another form (Y) which will insert data into another table (B) but i need to use tables A's last inserted row.
I know i can get it from using the mysqli_insert_id
function but when i submit to form Y and re show form Y is messes up because the $ID
value is nulled. i tried to type cast the value of id by doing this.
$id = (int)mysqli_insert_id($link);
but that didn't help at all.