Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 09-26-2006, 06:42 AM Table linking
dahak's Avatar
Skilled Talker

Posts: 60
Location: Romania
Trades: 0
i have to create a student web app.
i need to have 3 tables in the mysql db.
one for students,one for classes,and one for grades.
i have a form that inserts the student and the classes.
then a page from where i can choose the student and give him a grade at each class.
how can i link these tables?
is it better to do it from mysql with foreign keys or from the php code ?
thank you
dahak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-26-2006, 03:46 PM Re: Table linking
SlayersOtaku's Avatar
Skilled Talker

Posts: 77
Name: Joe
Location: Oklahoma, USA
Trades: 0
Sounds like you just need to do a JOIN statement.

http://dev.mysql.com/doc/refman/5.0/en/join.html
__________________

SlayersOtaku is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Table linking
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77214 seconds with 12 queries