I don't have problems with the design/css/html part of the work. I am confused with the php/mysql part. In the moment i have a query that gets the values and prints them one after another.
while ($row = mysql_fetch_array ($result)){
echo "" . $row['views'] . "";
}
The results are limited to 3 and...I don't know how can I call the 3 returned rows separately. So that I can print each row in a different cell for instance.
It's for a classified ads site where on top of each page we have 3 featured items (like advertising space). And I will write something like
if (nobody owns the ad space) {
echo a random row;
} elseif (somebody owns it) {
echo his item;
}
And that thing repeats for each ad space. I don't want to make 3 querys because in a large database that can take time. I'd like to have one query which returns row1 row2 and row3 and call them separately. I hope I'm clear enough, and thanks to everyone who has the patience to read the thread and try to help!