RE: [PHP] Wrapping SQL results in 2 tables
| From: | Mike Smith | Date: | Tue, 21 Jan 2003 19:32:16 +0000 |
| Subject: | RE: [PHP] Wrapping SQL results in 2 tables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132503@lists.php.net to get a copy of this message | ||
Just goes to show there are such things as dumb questions. Thanks for
pointing me in the right direction. I'm using MSSQL, but mssql-data-seek
does the trick!
Thanks,
Mike
-----Original Message-----
From: Chris Shiflett [mailto:shiflett@php.net]
Sent: Tuesday, January 21, 2003 11:35 AM
To: Mike Smith; php-general@lists.php.net
Subject: Re: [PHP] Wrapping SQL results in 2 tables
--- Mike Smith <msmith@larrymethvin.com> wrote:
> I'm trying to present a phone directory in a
> printable format that will make "most" people
> happy. What I need to do is take the results
> from our database and "break" it into two
> tables.
I can't really tell what you are trying to do, but it
sounds like you just want to loop through a MySQL result
set more than once, right? If so, check out this function:
http://www.php.net/manual/en/function.mysql-data-seek.php
Chris