svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ query.xml
| From: | Peter Cowburn | Date: | Thu, 11 Aug 2011 20:18:05 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ query.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8600@lists.php.net to get a copy of this message | ||
salathe Thu, 11 Aug 2011 20:18:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=314798
Log:
fix example (mysqli::connect_* are properties not methods, doc #55405)
Bug: https://bugs.php.net/55405 (Open) The documentation
example for mysqli connect_errno says it's a function
Changed paths:
U phpdoc/en/trunk/reference/mysqli/mysqli/query.xml
Modified: phpdoc/en/trunk/reference/mysqli/mysqli/query.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2011-08-11 20:00:15 UTC (rev 314797)
+++ phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2011-08-11 20:18:05 UTC (rev 314798)
@@ -152,8 +152,8 @@
$mysqli = new mysqli("localhost", "my_user", "my_password",
"world");
/* check connection */
-if ($mysqli->connect_errno()) {
- printf("Connect failed: %s\n", $mysqli->connect_error());
+if ($mysqli->connect_errno) {
+ printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}