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

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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old November 27th, 2002, 04:19 PM
DivaX007 DivaX007 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 23 DivaX007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Plan for this

running win98,abyss server(it's thelocalhost for testing)
i need to do this:
1. let user send photo to me(a simple email link will do right?)
2. put image in folder and path in db(i'm so lost on this)
or
2b. put image in db(i prefer the former, but at this point i'm desperate)
3. display photos
4. rate photos using mysql (only one vote)
5. let users learn points for visiting the site

i have read SO many tutorials(yank's too) and downloaded SO many gallery scripts(hotscripts, too) and read books.

i need to know how to tackle the making of this site. i need to know the SIMPLE way to do it. i am NOT web developer.i've been working on this for months, but i think my problem is that i'm having a problem weeding out the information that i do not need.

please, please help

Reply With Quote
  #2  
Old November 28th, 2002, 03:29 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
You need a database called something like "User photos" with the following structure:

photoID (unique)
photoURL
photoCaption
photoVotestotal
photoAverageVote

Then you need to have a PHP script that will access the database using mysql_fetch_array to sort the results into rows.

This will show the page with the photos and the right captions under each. For voting you need something in PHP that basically says "update the photoVotesTotal count to one more than it currently is" and then add "photoAverageTotal" plus the new vote together and divide them by erm, wait, I'm losing sight of the maths, but you know how to do that part... and then reset the values in each of the fields to what they should be.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Plan for this


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 | 
  
 

Iron Speed




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