miz
09-29-2004, 01:34 AM
hmm ok this is the qustion,
i have made few tests, didnt secced much cuse i never worked with images
ok
i have list of images on db for exsample
id imagename imagepath
and have the values in it,
now i want it to select all of the images from db order by id
$img = $DB_site->query("select * from imagestable order by id");
while ($imageinfo = $DB_site->fetch_array($img) {
// do something
}
now my problem is to show them, i want the php page show them in rows(tr) and only 5 images per tr,
any id of how i can limit it to show only 5 images per <tr > and after 5 to make new <tr> and show again the next 5 pics and so on and on
thanks for the helpers.
i have made few tests, didnt secced much cuse i never worked with images
ok
i have list of images on db for exsample
id imagename imagepath
and have the values in it,
now i want it to select all of the images from db order by id
$img = $DB_site->query("select * from imagestable order by id");
while ($imageinfo = $DB_site->fetch_array($img) {
// do something
}
now my problem is to show them, i want the php page show them in rows(tr) and only 5 images per tr,
any id of how i can limit it to show only 5 images per <tr > and after 5 to make new <tr> and show again the next 5 pics and so on and on
thanks for the helpers.