php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61845 confusing example title
Submitted: 2012-04-24 21:19 UTC Modified: 2012-11-15 13:11 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: d at yahoo dot com Assigned: krakjoe (profile)
Status: Closed Package: MySQLi related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-04-24 21:19 UTC] 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"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-03 17:49 UTC] fmwdeveloper at gmail dot com
-Status: Open +Status: Closed
 [2012-08-03 17:49 UTC] fmwdeveloper at gmail dot com
n/a
 [2012-08-28 17:12 UTC] d at yahoo dot com
-: fmwdeveloper at gmail dot com +: d at yahoo dot com
 [2012-08-28 17:12 UTC] d at yahoo dot com
n/a
 [2012-08-28 18:57 UTC] 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 18:57 UTC] philip@php.net
-Status: Closed +Status: Re-Opened
 [2012-11-15 13:11 UTC] krakjoe@php.net
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.


 [2012-11-15 13:11 UTC] krakjoe@php.net
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: krakjoe
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 15:01:29 2024 UTC