summaryrefslogtreecommitdiffstats
path: root/index.example.php
diff options
context:
space:
mode:
authorIndieteq <admin@indieteq.com>2012-11-13 22:20:24 +0100
committerIndieteq <admin@indieteq.com>2012-11-13 22:23:36 +0100
commitfe32ffbdb28de5178857994bd4b430e06af95f84 (patch)
tree82c64729f347add74de4bb95e9a7fc255c74dbc9 /index.example.php
parenta470727859a822c24754142544c6c520e34457bd (diff)
downloadphp-mysql-pdo-database-class-fe32ffbdb28de5178857994bd4b430e06af95f84.zip
php-mysql-pdo-database-class-fe32ffbdb28de5178857994bd4b430e06af95f84.tar.gz
php-mysql-pdo-database-class-fe32ffbdb28de5178857994bd4b430e06af95f84.tar.bz2
fixed bug in easyCRUD
Diffstat (limited to 'index.example.php')
-rw-r--r--index.example.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.example.php b/index.example.php
index 71a78e0..783a08e 100644
--- a/index.example.php
+++ b/index.example.php
@@ -23,13 +23,13 @@
$persons_num = $db->query("SELECT * FROM Persons", null, PDO::FETCH_NUM);
// Fetching single value
- $firstname = $db->single("SELECT firstname FROM Persons WHERE Id = :id ", array('id' => '31' ) );
+ $firstname = $db->single("SELECT firstname FROM Persons WHERE Id = :id ", array('id' => '3' ) );
// Single Row
- $id_age = $db->row("SELECT Id, Age FROM Persons WHERE firstname = :f", array("f"=>"John"));
+ $id_age = $db->row("SELECT Id, Age FROM Persons WHERE firstname = :f", array("f"=>"Zoe"));
// Single Row with numeric index
- $id_age_num = $db->row("SELECT Id, Age FROM Persons WHERE firstname = :f", array("f"=>"John"),PDO::FETCH_NUM);
+ $id_age_num = $db->row("SELECT Id, Age FROM Persons WHERE firstname = :f", array("f"=>"Zoe"),PDO::FETCH_NUM);
// Column, numeric index
$ages = $db->column("SELECT age FROM Persons");