Jump to content

Recommended Posts

i have a db with 4 tables.

-main

-customers

-power

-connections

 

i am trying to create a form that inserts data into the "main" and "customer" tables. in the MAIN table, the cust_id is set to auto increment. i would like to my form to send the "cust_id" that was just created to the next step of the form or just add it to the next table. 1st form would have 4 fields from the table "main" - cust_id, tenant, environment, and size. cust_id would be set to 0 or null, then when they submit, it would send them to the second form that has fields from "customers" - cust_id (this is where i want to find out what the cust_id was created for the first table),contact, phone, fax and so on. any help would be great.

Link to comment
https://forums.phpfreaks.com/topic/1893-mysql_insert_id/
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.