cvs: pear /MDB MDB_test.php
| From: | Lukas Smith | Date: | Thu, 16 May 2002 19:32:38 +0000 |
| Subject: | cvs: pear /MDB MDB_test.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3873@lists.php.net to get a copy of this message | ||
lsmith Thu May 16 15:32:38 2002 EDT
Modified files:
/pear/MDB MDB_test.php
Log:
several method names shortend
Index: pear/MDB/MDB_test.php
diff -u pear/MDB/MDB_test.php:1.3 pear/MDB/MDB_test.php:1.4
--- pear/MDB/MDB_test.php:1.3 Mon Apr 29 18:22:31 2002
+++ pear/MDB/MDB_test.php Thu May 16 15:32:38 2002
@@ -1,7 +1,7 @@
<?php
/*
*
- * @(#) $Header: /usr/repository/pear/MDB/MDB_test.php,v 1.3 2002/04/29 22:22:31 lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/MDB_test.php,v 1.4 2002/05/16 19:32:38 lsmith Exp $
*
*/
require_once("MDB.php");
@@ -32,18 +32,18 @@
// run the query and get a result handler
$result = $db->Query($query);
// lets just get row:0 column:0 and free the result
- $db->FetchResultField($result, $field);
+ $db->FetchField($result, $field);
echo "<br>field:<br>".$field."<br>";
// run the query and get a result handler
$result = $db->Query($query);
// lets just get row:0 and free the result
- $db->FetchResultRow($result, $array);
+ $db->FetchRow($result, $array);
echo "<br>row:<br>";
echo Var_Dump::display($array)."<br>";
// run the query and get a result handler
$result = $db->Query($query);
// lets just get column:0 and free the result
- $db->FetchResultColumn($result, $array);
+ $db->FetchColumn($result, $array);
echo "<br>column:<br>";
echo Var_Dump::display($array)."<br>";
// run the query and get a result handler
@@ -52,7 +52,7 @@
echo Var_Dump::display($db->tableInfo($result))."<br>";
// lets just get everything and free the result
$result = $db->Query($query);
- $db->FetchResultAll($result, &$array);
+ $db->FetchAll($result, &$array);
echo "<br>all:<br>";
echo Var_Dump::display($array)."<br>";
// save some time with this function
@@ -64,7 +64,7 @@
unset($result);
$result = $db->limitQuery($query, 1, 1);
// lets just get everything but with an associative array and free the result
- $db->FetchResultAll($result, $array, DB_FETCHMODE_ASSOC);
+ $db->FetchAll($result, $array, DB_FETCHMODE_ASSOC);
echo "<br>associative array with offset 1 and count 1:<br>";
echo Var_Dump::display($array)."<br>";
// lets create a sequence