I have a mysql table full of pictures(their path) that are owned by many different users.
I need to run the following query and return the results into a 5 column table. The number of rows will be however many it takes to display all the pictures.
My query is as following:
SELECT * FROM pictures WHERE email='$_GET['email'] and date >= DATE_SUB(NOW(), INTERVAL 30 DAY);
while ($row = mysql_fetch_assoc($sql)){
echo "



";
I just am confused on how to get it to make it do this for 5 columns, because I can't hard code the or for I don't know how many pictures there are per user. Some users may have 3 pictures and some may have 50.
Any ideas?