cvs: pear /MDB MDB_test.php

From: Date: Thu, 22 Aug 2002 14:08:05 +0000
Subject: cvs: pear /MDB MDB_test.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5882@lists.php.net to get a copy of this message
lsmith Thu Aug 22 10:08:05 2002 EDT Modified files: /pear/MDB MDB_test.php Log: fixed all calls to queryCol and fetchCol because if the API changes due to the fetchmode fixes Index: pear/MDB/MDB_test.php diff -u pear/MDB/MDB_test.php:1.30 pear/MDB/MDB_test.php:1.31 --- pear/MDB/MDB_test.php:1.30 Thu Aug 22 10:06:07 2002 +++ pear/MDB/MDB_test.php Thu Aug 22 10:08:05 2002 @@ -1,5 +1,5 @@ <?php -// $Id: MDB_test.php,v 1.30 2002/08/22 14:06:07 lsmith Exp $ +// $Id: MDB_test.php,v 1.31 2002/08/22 14:08:05 lsmith Exp $ // // MDB test script. // @@ -76,7 +76,7 @@ // run the query and get a result handler $result = $db->query($query); // lets just get column:0 and free the result - $array = $db->fetchCol($result, 2); + $array = $db->fetchCol($result, DB_FETCHMODE_DEFAULT, 2); echo '<br>get column #2 (counting from 0):<br>'; echo Var_Dump::display($array).'<br>'; // run the query and get a result handler

« previous php.pear.cvs (#5882) next »