mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed #50536.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292375 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5194661b6e
commit
cd55f2597b
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue