Doc #61845 [ReO->Csd]: confusing example title
Edit report at https://bugs.php.net/bug.php?id=61845&edit=1
ID: 61845
Updated by: krakjoe@php.net
Reported by: d at yahoo dot com
Summary: confusing example title
-Status: Re-Opened
+Status: Closed
Type: Documentation Problem
Package: MySQLi related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-08-28 18:57:28] philip@php.net
It appears to show how not to execute multiple mysql queries, as above that
example it reads "The mysqli_multi_query() function is used with multiple
statements." ... thoughts?
------------------------------------------------------------------------
[2012-08-28 17:12:44] d at yahoo dot com
n/a
------------------------------------------------------------------------
[2012-08-03 17:49:54] fmwdeveloper at gmail dot com
n/a
------------------------------------------------------------------------
[2012-04-24 21:19:42] d at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli.quickstart.statements
---
Example #1 reads "Example #1 Bad coding style".
I'm confused as to why an example with bad coding style is here. There is no
reference to bad coding style besides in the title so there is no explanation.
Is the purpose of the example just to show how to quickly connect to the db and
create a table? Or is it to show an example of what not to do?
Seems like an example with good coding style should be put up there and the title
should read something like "Example #1 Connect to database and create table"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61845&edit=1
Thread (5 messages)