svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-result.xml
| From: | Daniel Egeberg | Date: | Sun, 20 Dec 2009 20:38:03 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-result.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5695@lists.php.net to get a copy of this message | ||
degeberg Sun, 20 Dec 2009 20:38:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292375
Log:
Fixed #50536.
Bug: http://bugs.php.net/50536 (Open) code error(select db)
Changed paths:
U phpdoc/en/trunk/reference/mysql/functions/mysql-result.xml
Modified: phpdoc/en/trunk/reference/mysql/functions/mysql-result.xml
===================================================================
--- phpdoc/en/trunk/reference/mysql/functions/mysql-result.xml 2009-12-20 19:24:05 UTC (rev 292374)
+++ phpdoc/en/trunk/reference/mysql/functions/mysql-result.xml 2009-12-20 20:38:03 UTC (rev 292375)
@@ -80,6 +80,9 @@
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());