Re: Fwd: MySQLi extension basic examples
| From: | Christoph M. Becker | Date: | Mon, 30 Nov 2020 18:14:21 +0000 |
| Subject: | Re: Fwd: MySQLi extension basic examples | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969387676@lists.php.net to get a copy of this message | ||
On 28.11.2020 at 18:08, Kamil Tekiela wrote:
> I would like to hear your opinions about the following page in the PHP manual:
> https://www.php.net/manual/en/mysqli.examples-basic.php
>
> Currently, this is the only "example" apart from the quick start
> guide. There is a whole section
> https://www.php.net/manual/en/mysqli.examples.php which
> suggests that
> there were more or that there was meant to be more examples, however
> there is only that one example now.
>
> People have complained about the quality of this example for a number
> of years, including myself. The page does not show best practices,
> encourages SQL injection, poor error handling, and lacks prepared
> statement example. As a result, it does more harm than good.
Why not take the opportunity, and *add* an example which does basically
the same, but uses prepared statements, and other best practices?
Regards,
Christoph