Re: listing
| From: | Andy Crouch | Date: | Thu, 23 Aug 2001 18:57:32 +0000 |
| Subject: | Re: listing | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11747@lists.php.net to get a copy of this message | ||
I have found Richard Heyes's template class to be very useful for this sort of thing--he includes functions to parse code surrounded by <LOOP></LOOP> tags for an entire MySQL result set. Very handy if you prefer to separate code and layout. (If anyone is interested, I wrote a function that extends his class to allow the templating of summary rows as well as individual data rows--both subtotals and totals for a given field or fields--all specified in your HTML template separate from the PHP code.)
Yours,
Andy
At 11:41 AM -0700 on 8/23/01, you wrote:
Hello again, Is there oportunity to write this: <some php command to loop entries, the way is written bellow> HTML php coding.+ MYSQL - 1 entries information <end of loop> Something like that: <here loop begins> <table> <tr> <td> first entry information from table "companies" (name, telephone...) </td> </tr> </table> <loop ends>