Re: Fwd: MySQLi extension basic examples

"Christoph M. Becker" <[email protected]>
Newsgroups gmane.comp.php.documentation.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.