diff options
Diffstat (limited to 'tests/httpd-php-mysql-sanity-test/old_mysql.php')
-rw-r--r-- | tests/httpd-php-mysql-sanity-test/old_mysql.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/httpd-php-mysql-sanity-test/old_mysql.php b/tests/httpd-php-mysql-sanity-test/old_mysql.php new file mode 100644 index 0000000..8904c58 --- /dev/null +++ b/tests/httpd-php-mysql-sanity-test/old_mysql.php @@ -0,0 +1,12 @@ +<?php +$db = mysql_connect("localhost", "root"); +if (!$db) { + die("Could not connect"); +} +if (!mysql_select_db("php_mysql_test")) { + die("Could not select database"); +} +$res = mysql_query("SELECT * from foobar"); +$row = mysql_fetch_assoc($res); +printf("%s is %d\n", $row['name'], $row['value']); +?> |