Doc #63302 [Opn]: Example error
| From: | php at htmledit dot com | Date: | Thu, 18 Oct 2012 08:58:46 +0000 |
| Subject: | Doc #63302 [Opn]: Example error | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8974@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63302&edit=1
ID: 63302
User updated by: php at htmledit dot com
Reported by: php at htmledit dot com
Summary: Example error
Status: Open
Type: Documentation Problem
Package: Translation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
PS: on the french version only !
http://php.net/manual/fr/mysqli.query.php
Previous Comments:
------------------------------------------------------------------------
[2012-10-18 08:57:07] php at htmledit dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli.query#refsect1-mysqli.query-examples
---
"$" sign missing on "mysqli->connect_error".
It should be :
/* Vérification de la connexion */
if ($mysqli->connect_errno) {
printf("Ãchec de la connexion : %s\n", $mysqli->connect_error);
exit();
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63302&edit=1