summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.php b/index.php
index b96b482..623cb9a 100644
--- a/index.php
+++ b/index.php
@@ -44,4 +44,17 @@
// Delete statement
// $delete = $db->query("DELETE FROM Persons WHERE Id = :id",array("id"=>"6"));
+
+ function d($v,$t)
+ {
+ echo '<pre>';
+ echo '<h1>' . $t. '</h1>';
+ var_dump($v);
+ echo '</pre>';
+ }
+ d($person, "All persons");
+ d($firstname, "Fetch Single value, The firstname");
+ d($id_age, "Single Row, Id and Age");
+ d($ages, "Fetch Column, Numeric Index");
+
?>