puzzleing problem
| From: | Ryan A | Date: | Sat, 10 May 2003 00:36:36 +0000 |
| Subject: | puzzleing problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147082@lists.php.net to get a copy of this message | ||
Hi guys,
Have a puzzleing problem...see if you can help me out.
I visited a site called "hostfilter.com" as I am making a simular site but
am confused by one of their functions in the search page....
their results page is pretty straight forward except for one thing...
normally I would execute an sql something like this for that result:
select * from sometable where price<=5 and platform=unix and space=10
then format the resultset into a nice table so it gives me:
$package $pdetail1 $pdetail2 $pdetail3 $pdetail4 etc
$company-For-The-Above-Package
BUT how is he getting:
$package $pdetail1 $pdetail2 $pdetail3 $pdetail4 etc
$package2 $pdetail1 $pdetail2 $pdetail3 $pdetail4 etc
$package3 $pdetail1 $pdetail2 $pdetail3 $pdetail4 etc
$company-For-The-Above-Package
whenever i try my sql i keep getting the $company-For-The-Above-Package
appearing after every line instaed of once the way its in hostfilter.com's
result...
Am wondering if he is using some special sql or is it an ASP feature and
more importantly how do i do it in PHP?
Any ideas?
Please reply.
Thanks,
-Ryan