summaryrefslogtreecommitdiffstats
path: root/tests/httpd-php-mysql-sanity-test/old_mysql.php
diff options
context:
space:
mode:
authorYevhenii Shapovalov <yshapova@redhat.com>2017-11-16 12:27:52 +0200
committerYevhenii Shapovalov <yshapova@redhat.com>2017-11-16 12:27:52 +0200
commit4533b4fe588d174b12ce97d18ed0c10189c32b45 (patch)
treee47abbaeb0b6cb4269f4d31d10cdb7bf812d0352 /tests/httpd-php-mysql-sanity-test/old_mysql.php
parent9c91812414ae30246f37b11c46ba579f89ab3ecb (diff)
downloadhttpd-add_tests.tar.gz
httpd-add_tests.tar.xz
httpd-add_tests.zip
add tests with standart test interfaceHEADadd_tests
Diffstat (limited to 'tests/httpd-php-mysql-sanity-test/old_mysql.php')
-rw-r--r--tests/httpd-php-mysql-sanity-test/old_mysql.php12
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']);
+?>