published by d.cochran on Fri, 10/18/2013 - 08:15
Here is an easy way to kill queries using PDO connection method with MySQL. Note that you can NOT kill queries using a "prepared" string. It must be done using "query".
The first step is to grab the PROCESSLIST.
published by d.cochran on Fri, 10/18/2013 - 08:00
Here are some PDO connection method basics with examples.
You will often commonly see the connection method being referred to as $dbh and $sth. These simply stand for "database handler" and "statement handler".
Connecting to MySQL with PDO Object
published by d.cochran on Thu, 08/02/2012 - 17:00
Below is a PDO update function that I wrote to save me time from
constantly constructing the PDO update query whenever I need it. Now I
simply pass my values and fields to the function and all is taken care
of.
published by d.cochran on Thu, 08/02/2012 - 16:52
Below is a PDO insert function that I wrote to save me time from
constantly constructing the insert query whenever I need it. Now I
simply pass my values and fields to the function and all is taken care
of.
published by d.cochran on Thu, 08/02/2012 - 16:47
Below is how to set up a PDO connection to a MySQL database.