Permalink
Browse files

fix includes in examples

  • Loading branch information...
1 parent fbf9dad commit 1338d74ffc1a484d99b833075b9f451ee6ba2654 @iannsp iannsp committed Jul 12, 2012
Showing with 7 additions and 7 deletions.
  1. +4 −4 examples/testeMysql.php
  2. +3 −3 examples/testePgSQl.php
View
8 examples/testeMysql.php
@@ -1,6 +1,6 @@
<?php
-include_once '../src/DB/Pl2method.php';
-include_once '../src/DB/Pl2method/Exception.php';
+include_once '../src/DB/Pl2Method.php';
+include_once '../src/DB/Pl2Method/Exception.php';
include_once '../src/DB/Pl2Method/SGDBDriver.php';
include_once '../src/DB/Pl2Method/SGDBInterface.php';
include_once '../src/DB/Pl2Method/Driver/Mysql.php';
@@ -20,12 +20,12 @@
$m = new PDO("mysql:host=127.0.0.1; dbname=test", "root", "mysql");
$pl2method = \PEAR2\DB\Pl2Method\Pl2Method::getInstance($m);
// here you have a PDOStatement
-$returned = $pl2method->test->teste_();
+$returned = $pl2method->pear2->teste();
var_dump( $returned );
// You can FetchAll()
var_dump($returned->FetchAll());
-?>
+?>
View
6 examples/testePgSQl.php
@@ -1,6 +1,6 @@
<?php
-include_once '../src/DB/Pl2method.php';
-include_once '../src/DB/Pl2method/Exception.php';
+include_once '../src/DB/Pl2Method.php';
+include_once '../src/DB/Pl2Method/Exception.php';
include_once '../src/DB/Pl2Method/SGDBDriver.php';
include_once '../src/DB/Pl2Method/SGDBInterface.php';
include_once '../src/DB/Pl2Method/Driver/Pgsql.php';
@@ -31,4 +31,4 @@
-?>
+?>

0 comments on commit 1338d74

Please sign in to comment.