summaryrefslogtreecommitdiffstats
path: root/index.example.php
diff options
context:
space:
mode:
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");