diff options
author | Yevhenii Shapovalov <yshapova@redhat.com> | 2017-11-16 12:27:52 +0200 |
---|---|---|
committer | Yevhenii Shapovalov <yshapova@redhat.com> | 2017-11-16 12:27:52 +0200 |
commit | 4533b4fe588d174b12ce97d18ed0c10189c32b45 (patch) | |
tree | e47abbaeb0b6cb4269f4d31d10cdb7bf812d0352 /tests/httpd-php-mysql-sanity-test/old_mysql.php | |
parent | 9c91812414ae30246f37b11c46ba579f89ab3ecb (diff) | |
download | httpd-add_tests.tar.gz httpd-add_tests.tar.xz httpd-add_tests.zip |
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']); +?> |