Jump to content

PHP/MYSQL id association problem


elementis0

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 comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...