View Single Post
Old 05-22-2009, 10:27 PM   #13 (permalink)
Sirupsen
The Contributor
 
Sirupsen's Avatar
 
Join Date: May 2009
Posts: 53
Thanks: 2
Sirupsen is on a distinguished road
Application

Alright, I get the idea of this!
I suppose I'm gonna do somehting like 5 fields:
1. ID
2. Thumb [0 if this is not the thumb, 1 if this is the thumb]
3. Picture [The picture url, left blank if Thumb == 0]
4. Picture Description [Will be what's in the <a title='' /> in the Thumb]
5. Bound To [The gallery the pictures are bound to, the ID of the thumb]
In the PHP I will only have 2 IF's

Quote:
if [thumb == 1] [
Make a Thumbail, which creates a gallery that pictures can bind to.
]

if [thumb == 0] [
Links those images to the Thumbail that it's [bound to] in the MySQL
]
Send a message via AIM to Sirupsen Send a message via MSN to Sirupsen Send a message via Yahoo to Sirupsen Send a message via Skype™ to Sirupsen
Sirupsen is offline  
Reply With Quote