note 90048 added to mysqli-result.fetch-assoc
| From: | j0 at f0str dot com | Date: | Fri, 03 Apr 2009 05:17:50 +0000 |
| Subject: | note 90048 added to mysqli-result.fetch-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152780@lists.php.net to get a copy of this message | ||
In my opinion, to make the object oriented style more object oriented I would change this:
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
to this:
/* check connection */
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
However, this change will have no impact on the outcome of the code.
----
Server IP: 209.41.74.194
Probable Submitter: 24.225.48.39
----
Manual Page -- http://www.php.net/manual/en/mysqli-result.fetch-assoc.php
Edit -- https://master.php.net/note/edit/90048
Del: integrated -- https://master.php.net/note/delete/90048/integrated
Del: useless -- https://master.php.net/note/delete/90048/useless
Del: bad code -- https://master.php.net/note/delete/90048/bad+code
Del: spam -- https://master.php.net/note/delete/90048/spam
Del: non-english -- https://master.php.net/note/delete/90048/non-english
Del: in docs -- https://master.php.net/note/delete/90048/in+docs
Del: other reasons-- https://master.php.net/note/delete/90048
Reject -- https://master.php.net/note/reject/90048
Search -- https://master.php.net/manage/user-notes.php