If a beginner searches on Google about PHP and MySQL, they mostly get the links below, at least according to Google in my country/area:

- [mysql-php-select](https://stackoverflow.com/questions/14551607/mysql-php-select)

- [how-can-i-fetch-data-from-database-in-php-using-mysql](https://stackoverflow.com/questions/14827380/how-can-i-fetch-data-from-database-in-php-using-mysql)
- https://stackoverflow.com/questions/20407699/php-connect-to-mysql-database

- https://stackoverflow.com/questions/23024114/simple-search-mysql-database-using-php/23024143
- https://stackoverflow.com/questions/6907751/select-count-from-table-of-mysql-in-php/16511917
- https://stackoverflow.com/questions/668275/cant-connect-to-mysql-with-php

These are some examples of what I got while searching on Google about the same, as you can see, the accepted answers mostly reflect the usage of deprecated MySQL functions. Which trick the beginners to use the functions as they are on Stack Overflow. 


This has already  been discussed [here](https://meta.stackoverflow.com/questions/296265/how-should-we-handle-ext-mysql-deprecation-in-php-questions-older-included) and comments are made below to warn users about the deprecation, but still some users practice the methods of accepted answers which follow bad practices.

We don't want beginners to make these big mistakes, we are SO and [Stack Overflow is a wiki](https://www.joelonsoftware.com/2008/12/28/stack-overflow-is-a-wiki/) so it should be updated, not to mislead beginners into using deprecated functions and methods.  
I still see people posting questions about the errors and we notice that they are using old MySQL functions that are prone to SQL injections. Although most of the sources are now updated and are new, these old ones need attention and we should do something about them