General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 19th, 2003, 09:09 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Lightbulb Linking tables?

Can someone help me I am trying to make a forum but I am having dificulaty thinking of how to make the tables for the forums.

Here is what I have.

PHP Code:
 $sql "CREATE TABLE forum (
forum_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
forum_name_id INT NOT NULL 
);"
;

$sql "CREATE TABLE forum_name  (
forum_name_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
forum_name TEXT NOT NULL, 
sub_forum_id INT NOT NULL, 
FULLTEXT (forum_name) 
);"


$sql "CREATE TABLE sub_forum_id (
sub_forum_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
post_id INT NOT NULL 
);"
;

$sql "CREATE TABLE Post (
post_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
post_title TEXT NOT NULL , 
post_date DATE NOT NULL , 
post_story TEXT NOT NULL , 
post_icon TEXT NOT NULL , 
post_member TEXT NOT NULL , 
FULLTEXT (post_title, post_story, post_icon, post_member)
)"



Hopefully you can see in their how I want the tables to link to eachother and all of them update...I am using PHP as you can tell...Can someone please push me in the correct direction?
__________________
Thanks,
Attila
http://www.glorynaspiration.com
http://www.abitofthings.com

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Linking tables?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway