PHP PDO MySQL:Simple Example Connecting to MySQL with PDO Class
I’ll demonstrate a simple example on how to connect to mysql using PHP’s PDO class. Just some of the benefits of PDO is that it’s fast and if you use the PDO::prepare() method it will prevent SQL injection attacks by calling the PDO::quote() method. The other pros is that there are several databases it [...] [...more]
