Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 30th, 2004, 12:24 PM   #1
nickk
Newbie
 
Join Date: Oct 2004
Posts: 4
Rep Power: 0 nickk is on a distinguished road
Hello,

I have been writing PHP scripts for quite some time now, but nothing big, just basic site navigation stuff, guestbooks, etc. I have a problem with making anything "bigger" which requires different parts to work together well.

I was recently asked to code the "brain" behind my school's yearbook website. I have been making a plan of how the whole application is going to work, and I wanted to post my ideas so maybe some more experiences PHP users can give me some advice.

Now the idea behind the website is that between 250 and 350 students are able to upload a piece of text (no bigger than maybe 2 or 3 medium sized paragraphs), and a photo. The text/photos should be displayed neatly online, and should be made available in .txt format (for the text pieces) for the publisher to use for the physical yearbook. There should also be a section where parents, etc. can upload a small message which will go into the yearbook.

My plan is the following: have 5 tables =>
[ul][li]1 table for each class (there are 4)[/li]
[li]1 table for the parent's comments section[/li][/ul]

Each "class" table will have the following:
[ul][li]ID[/li]
[li]Name[/li]
[li]Text[/li]
[li]Photo[/li][/ul]

When a student submits their text + photo, the script gives them the ID of the last student + 1, saves their text in the MySQL table, and in a .txt file with the name of their ID. Same thing happens with the photo. it is saved under ID.jpg (where ID is the student's ID), and in the photo field in the table, it simply saves the location of the photo.

With the tables + seperate files it should be easy to display the information for each student comfortably, and for the publisher to extract the information for the physical book.

Any idea/comments/suggestions welcome, and I would be very greatful for any help I get.

Thanks, Nick.
nickk is offline   Reply With Quote
Old Oct 30th, 2004, 1:11 PM   #2
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 5 BlazingWolf is on a distinguished road
The only really big problem is see is you will need some sort of login system or else each person will be able to upload more than one picture. Unless that is what you want.

Quote:
the script gives them the ID of the last student + 1,


ID.jpg (where ID is the student's ID),
When you say "student's id" is that an id the school gives each person or just a random number for this system. If it is assigned then the system can't just automate the numbering on pictures ect.
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Old Oct 30th, 2004, 1:42 PM   #3
nickk
Newbie
 
Join Date: Oct 2004
Posts: 4
Rep Power: 0 nickk is on a distinguished road
Thank you for the reply BlazingWolf.

When a user tries to upload text/a picture the script will check if there is allready content there, thus 2 pictures won't be uploaded.
The ID is a random number, not the one assigned by the school.

Thanks again.
nickk is offline   Reply With Quote
Old Oct 30th, 2004, 2:47 PM   #4
dnathe4th
Programmer
 
Join Date: Oct 2004
Posts: 32
Rep Power: 0 dnathe4th is on a distinguished road
be careful for people signing on as other people and uploading not very pretty pictures........
__________________
&lt;CENTER&gt;<span style='font-size:17pt;line-height:100%'>My Homepage</span>&lt;/CENTER&gt;
dnathe4th is offline   Reply With Quote
Old Oct 31st, 2004, 11:35 AM   #5
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Use a MySQL back-end for everything. You can store the text and picture in a mysql database, keep it simple and if they want a txt file have it generated from the mysql backened.
__________________

tempest is offline   Reply With Quote
Old Oct 31st, 2004, 12:26 PM   #6
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
I think people signing in as someone else would be a problem. *Ade sits back and ponders the pranks of his school days*

Why not add an authorization system. It could work by allowing the student to fill in your form and submit it, then it could be sent to a table awaiting authorization. When you (or anyone at your school teachers etc.) could get on to see the contents of this table and click a link to finalizze the entry. These authorized entries would get into the final table for public viewing. I know then you have the problem of 300+ entries to look at, but if you could share the job with someone else it's not that bigger problem.

Just a thought
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Oct 31st, 2004, 12:30 PM   #7
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
What if someone else just authorized about 10 peoples names? Theres still no real security there except for word-of-mouth. See if the school has student PIN numbers or something you can use for authorization, something of that nature.
__________________

tempest is offline   Reply With Quote
Old Oct 31st, 2004, 12:54 PM   #8
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
Well i mean like you just let a few trusted people have access to the screen that allows the authorization bit
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Oct 31st, 2004, 12:58 PM   #9
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Well yea, but im referring to the validity of the information thats put into that table.
__________________

tempest is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC