Re: Structure Data Grid Using PDO

From: Date: Wed, 25 Feb 2009 23:28:21 +0000
Subject: Re: Structure Data Grid Using PDO
References: 1  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-51561@lists.php.net to get a copy of this message
Hi, Ajitabh Kishore wrote: > I am looking for a sample code or example or documentation on how to use > Structure Data Grid with PDO and populate data into smarty template. > > Any help or reference will be highly appreciated. You have two possibilities for using SDG with PDO: (1) Create the PDO connection yourself: $dbc = new PDO($dsn, $username, $password); $options = array('dbc' => $dbc); (2) Let SDG create the connection: $options = array( 'dsn' => $dsn, 'username' => $username, 'password' => $password ); Once you have that, you can call bind(): $res = $datagrid->bind($query, $options, 'PDO'); Please send such questions to the pear-general list next time. pear-dev is a "list for the people who make PEAR packages" (quoted from [1]). Regards, Mark [1] http://pear.php.net/support/lists.php -- http://www.markwiesemann.eu

« previous php.pear.dev (#51561) next »