12-08-2007, 09:19 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Dec 2007
Posts: 8
Thanks: 2
|
Category and order
Hello all!
I'm new here, yea this looks like i'm just fishing info and leaving.. Well it doesn't have to be so.
Ok what ever.
My problem is this:
I have an ad website under developement and it has multiple gategories where same ad can be. But the order is always different. So how could this have been done?
I have idea like this in mysql tables:
-- Categories --
id
category (the name like sport, horses, dogs...)
order (helds numbers wich will be the ids of ads.)
-- Ads --
id
name
url
image
width
height
colspan
category
My function will use this -> Mainos('category'); So it will print all ads in order wich is told in category table in order row of the category. And it will start new row allways after colspan total = 3
I hope someone understood what I asked and is able to help me :)
Thank you.
Regards, Jonne 
|
|
|
|