MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 26th, 2000, 08:33 AM
trahma trahma is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 33 trahma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to trahma
I'm designing a database for the school district I work for with php/mysql which allows teachers to maintain their own class web site which has the following sections. The front page, pretty much a section for a newsletter from the teacher. A student showcase section where they can scan works that the children do and display them on the web. A homework section with current homework so parents can keep up do date on what their children are doing. A useful links section, pretty much a section of links the teacher finds are helpful. Lastly, a calendar section, the one I'm most confused about, where a teacher can keep a class schedule updated.

Right now, here's how I have everything setup.

The main database is named teachers. Inside the database, right now every teacher gets 2 tables, username_content, where all the content for their pages is stored.

username_images, a table with information about images they have stored currently in their image library. The actual images are kept on the web server. This table just has 3 columns, image identifier, image name, image description.

username_content right now right now has 5 columns. An id column, just a numeric id for the current content, a headline, an image for the post, the content section, and a category column which just tells which section of the web page the content is for.

I want to make 1 more table for teachers, username_calendar, which will store the calendar, but I'm not sure quite how I should set this up.

There's one other table, users which just has 3 columns, username, password, and which sections the user has access to.

Here's my question, is what I'm doing right now bad database design, should I have every teacher use 1 table? I'm new to database design so I'm doing this off of what I think is correct.

Secondly, how should I setup my calendar table? I'm lost as to how I can set it up. I know this is more of a php/mysql question, but I think it's more related to mysql so I posted it here.

Thanks for any help which you may provide in advance,

-Justin

Reply With Quote
  #2  
Old April 27th, 2000, 02:48 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
trahma,

i would suggest you to write down all the table names ,field names in a sheet of paper.
and work it out.that is the easy way to create a very good database system.

Here you can write some thing like this.

teachers
-------
table names
1) username_content
2) username_images
3) username_calendar
4) users

then write down field names for each table:

1) username_content
a)id (PRIMARY KEY AUTO_INCREMENT NOT NULL)
b)headline
c)imag
d)content
e)category

2).....

(like this way you can write the fields for all the tables)

After writing the field names,you may decide the size and type of the fields(eg: varchar(30)).


Hope this may help you to create your database.

GOOD LUCK!!!



------------------
SR -
shiju.dreamcenter.net

Reply With Quote
  #3  
Old May 16th, 2000, 09:00 PM
Dr_E_lectric Dr_E_lectric is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 36 Dr_E_lectric User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
trahma, I am doing some simular for the local boy scouts but I am going to use a php driven calendar program writen by a 3rd party. This will provide more options than just schdule info stored on a db.

D. E. L.

[This message has been edited by Dr_E_lectric (edited May 16, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Database design help


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