Jump to content

Mysql Multiform Tracking


Colton.Wagner

Recommended Posts

Hello,

 

So I am having a bit of an issue with some forms I am working with. Let me first descirbe the issue at hand then we will get to my request for help.

 

So I have 3 tables set up with roughly 120 columns. Not all of these columns will contain data as it is based on users entry. Basically what I am trying to do is have the id from the first table match that of the second and third. The script is hit and miss right now by using the mysql_insert_id() function.

 

I would like to let these databases manage themselves and correlate there id's so all three forms can be queried by user id.

 

I thank you for all of your time in advanced hope you can be of assistance!

Link to comment
Share on other sites

Hard to help when  you don't ask a specific question.

 

Assuming that you are talking about coordination of the id on all 3 tables - your use of the MySQL_insert_id  function gets you a key value; use it to set values in the other two tables which are NOT auto-increment fields.

 

BTW - you do know that MySQL-***  functions are deprecated in php and should be avoided for all new development.

Link to comment
Share on other sites

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.