Datagrid and Excel

From: Date: Mon, 28 Aug 2006 12:29:00 +0000
Subject: Datagrid and Excel
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24999@lists.php.net to get a copy of this message
Hello, I'd like to create an excel file with DataGrid, but I always get the full page not the only query result. Here's my code: $rankitem = intval($_GET['rit']); require_once 'Structures/DataGrid.php'; $datagrid =& new Structures_DataGrid($rankitem); $options = array('dsn' => 'mysql://gtk:******@localhost/gtk'); $result = $datagrid->bind(" SELECT u.user_id AS uid, u.name AS name, u.user_name AS username, rankpts+gpa AS points FROM Users u ORDER BY rankpts+gpa DESC", $options); $datagrid->render(DATAGRID_RENDER_XLS); How can I do that if I want to see only the query result not the full page? Thanks a lot ZoTya

« previous php.pear.general (#24999) next »