Re: Displaying Database Results
| From: | Colin Viebrock | Date: | Fri, 16 Mar 2001 18:02:33 +0000 |
| Subject: | Re: Displaying Database Results | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-4504@lists.php.net to get a copy of this message | ||
This sounds like something that could easily be accomplished with PHP ...
and (to be honest) with ASP as well. I don't know ASP coding at all, but it
sounds like you are having a problem with looping through the results of
your database query.
Either that or you need to do something like (pseudo-code):
count = 1;
while (read in a row of data) {
display data;
count = count +1;
if (count % 4 == 0) {
end this row and start another
}
}
--
Colin Viebrock
Co-Founder, easyDNS Technologies Inc.
http://www.easyDNS.com/
----- Original Message -----
From: "mike cash" <cmx7@hotmail.com>
To: <Webmaster@php.net>
Sent: Thursday, March 15, 2001 9:58 PM
Subject: Displaying Database Results
> Hi, I have a comlicated question for you, hope you can help. I have a
> database which contains images and information about each image. What I'm
> trying to accomplish is displaying many of these images (based on a query)
> with their respective data listed underneath each image. I have managed
to
> accomplish this with ASP but can only get one result per row. Each
> additional result is listed with its respective data underneath the
previous
> image.
>
> I'm trying (without much luck) to have the first result displayed
> (with data listed below it) and the next result (with data below it)
> displayed beside it and so on. Having probaly four results (again with
> respective data listed below image) displayed on one row and have four
more
> on next row...etc., until all results are displayed.
>
> With all that said, I simply want to know if this is something that I
could
> achieve with PHP. I have been encouraged to learn PHP and probably will,
> but this is something that I have to accomplish immediately. So taking
the
> time to learn PHP with it not being able to accomplish this would be a
waste
> of time right now.
>
>
> Any help you can offer would be deeply appreciated.
> Thank you for your time and any suggestions.
>
> Mike Cash
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com
>