News for hackers. Stuff that matters.
Re:46 useful PHP code snippets by sarciszewski on Thursday August 06, 2015 @11:53AM (#10017324)
3. PHP function to help prevent sql injection

No. No no no no no. A million times no.

Public service announcement: Do NOT use escaping to try to prevent SQL injection.

https://paragonie.com/blog/2015/05/preventing-sql-injection-...

20. php code snippet for database connection

> mysql_connect

I give up.

    (╯°□°)╯︵ ┻━┻
EDIT: I've submitted this blog post to HN separately here if anyone wants to discuss it there (since this one was flagged)

    -> https://news.ycombinator.com/item?id=10017409

There are no comments on this comment yet.