I'm having trouble with my code right now. I'm trying to insert data in the same table and the same id from different page. Here's the code. :)
$lastid = mysql_insert_id();
$sql = "UPDATE `sign_up_form3` SET `phone`=$phone, `address1`=$address1, `address2`=$address2, `city`=$city, `province`=$province, `zipcode`=$zipcode, `card_no`=$card_no, `ccv`=$ccv, `card_type`=$card_type, `exp_date`=$exp_date, `card_holder`=$card_holder WHERE userID=$lastid";
Your help will be appreciated.