If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Inputting data across multiple tables..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-06, 06:00
VoodooJai VoodooJai is offline
Registered User
 
Join Date: Aug 2006
Posts: 2
Question Inputting data across multiple tables..

Hi all
I am trying to build a data base that holds the details of tattoo studios so that pple can search for. If I split the details down into different table I dont understand how to input data int the table.
I have multiple tables for:
CONTINENTS
COUNTRIES
ADDRESS

Basically for any given address there is a country in a continent, multiple addresses appear in the same country etc. I have read that if information is repeated then put it into its own table. When it comes to putting data into the DB how do I select pre filled details from another table. I have read loads of pages from the web and a few books but cannot find what I need to know. Hope someone can help me.
Reply With Quote
  #2 (permalink)  
Old 09-13-06, 05:22
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Do you code from PHP or using LOAD DATA
Reply With Quote
  #3 (permalink)  
Old 09-13-06, 16:24
VoodooJai VoodooJai is offline
Registered User
 
Join Date: Aug 2006
Posts: 2
Coding

I am wanting to input data via PHP from a web page but also have specific data pre entered so the user can select from.

Many thanks
VoodooJai
Reply With Quote
  #4 (permalink)  
Old 09-13-06, 23:23
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Greetings
In your PHP code just a sample from code before

$db = new sql_db(db_host, db_user, db_password, db_name,false);

$result1 = $db->sql_query($sql_insertinto_table1);
$result2 = $db->sql_query($sql_insertinto_table2);
$result3 = $db->sql_query($sql_insertinto_table3);

Does this meet your requirement,
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On