WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-2004, 06:22 AM
ferhanz's Avatar
WebProWorld Member
 

Join Date: Jan 2004
Location: Pakistan
Posts: 38
ferhanz RepRank 0
Default delete or iserting multiple records

well not much experienced with php/mysql..i have just started a project in which i have to maintain a members database ...the members fall in several categories and then those categories have further sub categories.. so i have got 3 tables using the table type MyIsam using version 4 mysql

1. Member
2. Category
3. Sub Category

now when inseting data through forms i have to insert it directly in 3 tables...i know how to insert it single table but how can i insert it in more then 1 in a single statement?

secondly help me out in deleting those records from multiple tables through a single statement

in the last how can implement a full text search in php ?


Thanks in Advance
Farhan Nawazish
webmaster@hrdn.net
Reply With Quote
  #2 (permalink)  
Old 03-12-2004, 11:47 AM
WebProWorld New Member
 

Join Date: Dec 2003
Location: WA, USA
Posts: 18
bob_99 RepRank 0
Default Re: delete or iserting multiple records

Hi Farhan,

My impression is that you should take a look at your database design to take advantage of relational tables.

Consider using something like category IDs & member IDs to create join tables to store those relations.

If your database structure is right, then your input form would call multiple input statements to input the related values into the correct tables.

Try a search for 'database normalization' or 'relational database design' in your favorite search engine.

I hope this helps,

Bob

Quote:
Originally Posted by ferhanz
well not much experienced with php/mysql..i have just started a project in which i have to maintain a members database ...the members fall in several categories and then those categories have further sub categories.. so i have got 3 tables using the table type MyIsam using version 4 mysql

1. Member
2. Category
3. Sub Category

now when inseting data through forms i have to insert it directly in 3 tables...i know how to insert it single table but how can i insert it in more then 1 in a single statement?

<SNIP>
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: , , ,



Thread Tools
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

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


Search Engine Optimization by vBSEO 3.2.0