summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorIndieteq <admin@indieteq.com>2013-08-31 13:25:19 +0200
committerIndieteq <admin@indieteq.com>2013-08-31 13:25:19 +0200
commitb166f0ad7581d43f39c0f41abd4fe727cda77be8 (patch)
tree556985f6dd47a2cb31269a88435bd60343038f1a /index.php
parenta9ce530b84b533b566038409ce18fda93ee26d94 (diff)
downloadphp-mysql-pdo-database-class-b166f0ad7581d43f39c0f41abd4fe727cda77be8.zip
php-mysql-pdo-database-class-b166f0ad7581d43f39c0f41abd4fe727cda77be8.tar.gz
php-mysql-pdo-database-class-b166f0ad7581d43f39c0f41abd4fe727cda77be8.tar.bz2
Show some results
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");
+
?>