pdo
Get specific values from multidimentional array locked to ID
Maybe the title is a little confusing, but let me try to explain. I have a database (informix), and use PHP PDO, in that database there is a table which contains stylesheets for pages.[详细]
2023-04-13 08:21 分类:问答Secure query using implode with array
I\'m using PDO, and my $_POST[\'arraywithdata\'] is an array filed with numeric values. I think that this is not enough secure, I just 开发者_如何学Cwan\'t to be sure and prevent myself from a hack.[详细]
2023-04-13 07:47 分类:问答PDO Host Disregarded
I am setting up Symfony2 and, as part of the process, using the PDO extension for the first time. I got it setup alright, but I am having a problem specifying my hostname in the DSN. The MySQL host is[详细]
2023-04-13 04:37 分类:问答query won't update, using php pdo
My first query is this: $sql = \"UPDATE application SET userid = ? WHERE appid = ? LIMIT 1\"; My second query is this:[详细]
2023-04-13 02:39 分类:问答Dual values returned after SELECT using PHP and PDO with DB2 over ODBC
I am having a weird issue with PDO when I query a DB2 database using ODBC. I am using PHP 5.3.8 compiled using DB2 Express-C V9.7. The result set always returns dual values for each开发者_如何学JAVA c[详细]
2023-04-13 02:12 分类:问答PDO::FETCH_CLASS with multiple classes
I am trying to turn an query result into classes. $result->setFetchMode(PDO::FETCH_CLASS, \'myclass\', array());[详细]
2023-04-13 00:50 分类:问答How to traverse the PDOStatement object i.e. fetch first, last previous next etc?
I am trying to access data again and again in a webpage. Is there a better way ? some thing like movetofirst(), movetolast(), movetoprevious(), movetonext() could be nice.[详细]
2023-04-12 20:30 分类:问答Is this secure enough?
I\'m new with PDO, and I just wanted to know if this code: $string = $_POST[\'string\']; $matches = $SQL->prepare(\"SELECT * FROM `users` WHERE `name` LIKE ?\");[详细]
2023-04-12 05:45 分类:问答Measuring the time of a query
I\'m using PDO, is there any way, to measure how long does it 开发者_开发百科take to complete the query?You could use microtime(true) to get the seconds needed to execute:[详细]
2023-04-12 05:41 分类:问答php autoload: duplication of db connection
Why does this autoload class duplicate the db connection? class autoloader { private $directory_name; public function __construct($directory_name)[详细]
2023-04-12 03:09 分类:问答