just some database test...
authorHeiko Schlittermann (IT Trainingshaus) <hs@schlittermann.de>
Wed, 26 Oct 2011 16:00:14 +0200
changeset 13 6216181a7668
parent 12 873ac3cadb02
child 14 2a78703d3c2d
just some database test...
test.php
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test.php	Wed Oct 26 16:00:14 2011 +0200
@@ -0,0 +1,10 @@
+<?
+$dbh = new PDO("mysql:host=localhost;dbname=abook", "hans", "x", 
+	array(
+		PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
+	));
+
+	$dbh->exec("CREATE TABLE IF NOT EXISTS data
+		(name TEXT, tel TEXT, email TEXT)");
+
+?>