Using PHP with MySQL – the right way – Tutorial – Binpress

PHP and MySQL is one of the most common stacks for web development, even in 2014. With it such a common combination powering so many websites, it is quite shocking that the most common online examples of using it are completely horrible and outdated by at least a decade. Try searching for “php mysql tutorial” and see what you find – it ain’t pretty.

Source: Using PHP with MySQL – the right way – Tutorial – Binpress

5 useful PHP functions for MySQL data fetching

PHP usually comes with mysql extension mysql (mysql_… functions) which is rather low-level and requires writing too much code for a trivial tasks: error-checked execution of SQL queries, getting single row from SQL table, getting value from SQL table cell, etc. OOP mysqli extension isn’t any better. In this article we present 5 useful functions which greatly simplify majority of real-life MySQL operations.

Source: 5 useful PHP functions for MySQL data fetching