Mainly, i just want you all to check me and make sure i'm good to go before i code my ass off only to hit a road block...
Here it is:
Code: Select all
images table
id - image id (2 purposes: count total images, show latest images)
uid - user id
gid - gallery id
img - image data
res - resolution
ext - image extention (jpg, gif, png)
fn - original file name
pvt - private image? (yes, no)
thumbs table
uid - user id
gid - gallery id
img - thumbnail image data
ext - image extention
pvt - private image? (yes, no)
users table
uid - user id
name - user name
pass - password (md5 hashed)
frds - friends list (access to private galleries)
ip - ip address
ldate - last login date
date - signup date
email - email address
gallery table
uid - user id
gid - gallery id
name - gallery name
count - count of images in gallery
pvt - private gallery? (yes, no)
User table: contains user information
Image table: contains the full sized image data and information
thumbs table: contains the thumbnail image data of the images in the image table.
If you have any questions, feel free to ask.
Edit: Sneak peak at the template : http://img88.imageshack.us/my.php?image=screeny2rd7.jpg