Jump to content

PHP/MYSQL id association problem


Recommended Posts

Ok well heres my problem. I have two mysql tables.one table holds all information datathe other table holds all picture datawhen quering the tables i want to associate them by idmeaning I would like my images table id always equal the id of the information its associated with. heres my id setup:the id of the information table is set to auto incrementthe id of my images table is set to int.how can I use mysql/php to take the id that is being entered into the information table and insert that same id number for the pictures being associated with that information table? i wasnt sure whether to put this in the php or mysql forum, but seeing as php will probably be used to solve this i chose this forum.

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...