e35911cb00
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/httpd#c8bf9e154099a01a8f30dde2e71cdb5d9fe40842
13 lines
304 B
PHP
13 lines
304 B
PHP
<?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']);
|
|
?>
|