newbie in datagrid
| From: | Alain Roger | Date: | Fri, 10 Nov 2006 20:11:59 +0000 |
| Subject: | newbie in datagrid | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25760@lists.php.net to get a copy of this message | ||
Hi,
I'm new to the world of PEAR.
I've seem an example of what could be done with PEAR packages and it was
great.
Now i would like to use it on my website by i'm quite confused.
I would like to display a simple table
- with 10 rows per page.
- if there are more records (than 10), some arrows images should be
displayed somewhere to allow user to switch among pages
- to allow sorting on columns
- to customize the render
- to connect to postgreSQL
to do that i was thinking to use :
- structures/datagrid
however, i have some problem to know what will be the good DB package for
me.
what can i tell, it's that i have a global variabl $db which represents the
pg_connect to postgreSQL database.
so if $db exists, therefore we are already connected to db.
i would like to use a package like that :
package_db = $db;
package_query = $query;
and get the output to a render like HTML table with paging and customization
of colors,...
So, which DB object/package do you advise me and how to use it ?
moreover, which render could be the most interesting for me ?
thanks a lot,
Al.