PDO
Error message
Deprecated function: Function create_function() is deprecated in GeSHi->_optimize_regexp_list_tokens_to_string() (line 4698 of /home/digipiph/public_html/sites/all/libraries/geshi/geshi.php).
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.