MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL 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 November 24th, 2004, 08:34 AM
mph mph is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 12 mph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 0
Multiple Categories

I am in the process of making an inter-office website.

I can't seem to think of a way to store the data the right way. I can think of ways to do it, but all seem to be too much work.

Heres what I need:

CREATE TABLE `tickets` (
`ticket_id` int(11) NOT NULL auto_increment,
`user_id` int(11) NOT NULL default '0',
`ticket_lables` text NOT NULL,
`ticket_subject` text NOT NULL,
`ticket_content` text NOT NULL,
`ticket_status` text NOT NULL,
`ticket_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`ticket_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;


Now, with that in mind, I want to correlate that with the items in this table:

CREATE TABLE `labels` (
`labels_id` int(11) NOT NULL auto_increment,
`labels_name` text NOT NULL,
`labels_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`dept_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

How would I go about storing one or more labels from the lable table (heh) in the tickets table? What way would be the easiest and make the most sense?

Thanks,
Michael Halvorsen

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Multiple Categories


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 2 hosted by Hostway