git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292375 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2009-12-20 20:38:03 +00:00
parent 5194661b6e
commit cd55f2597b

View file

@ -80,6 +80,9 @@ $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db('database_name')) {
die('Could not select database: ' . mysql_error());
}
$result = mysql_query('SELECT name FROM work.employee');
if (!$result) {
die('Could not query:' . mysql_error());