I've prepared SQL Prepared statements which are giving me a proper result when I'm running it in Workbench. Now I want to execute it in laravel. SQL ...
I've prepared SQL Prepared statements which are giving me a proper result when I'm running it in Workbench. Now I want to execute it in laravel. SQL ...
I would like to know if the PDOStatement object convert the placeholders according the DBMS. In the examples of the documentation we can see just two ...
I have a little problem writing a simple class that uses PDO to connect to the db. The problem is that the PDOStatement::bindParam doesn't work after ...
I have a MySQL table called bid_lvl_descs with columns bid_type, lvl, desc Bid_type and lvl together are always unique, and desc for the purposes wil ...
i would like to define new class with extends of PDOStatement and in this child class i need override function bindColumn (PDOStatement::bindColumn) a ...
Is there such a thing like an "executed" flag for PDOStatement (PDOStatement) to see if the statement has been executed (by calling PDOStatement::exec ...
There is a following code: The code works as expected, but I don't understand the logic behind it. I've read on php.net that PDO::query() returns ...
I have searched here for answer to my problem. Some might had already answered here with other versions or drivers. This answer would help me a lot to ...
Tested in PHP 5.5.22 and 5.5.25 When using PDO that has extended PDOStatement, MySQL keep connection until when PHP script are finished. I can see ...
I don't understand because i recieve "could not be converted to string" ...
i have this function separated in my working page. what i'm really trying to do in this function is to count the number of rows that are results o ...
I have a pretty long alias in my query but I don't think it is above the allowed limit. I am using a Postgres database and and Yii 1.1.15. The query r ...
I'm not sure what I'm doing wrong. My code should read user_id from users table in mysql then use that in the next sql statement to read a line of sal ...
How is the readonly $queryString property being set inside PDOStatement class by the PDO::prepare() execution? Given the class definition, I don't se ...
I found same question here but it unanswered, and i provide more simple example here, and try ask again... Code: Result: Why it occurs, and how ...
?> somebody can help me? why i got Uncaught exception 'PDOException' with message 'SQLSTATE[42S22] sorry my english is bad, thanks ...
why doesn't below code work ? when i print $select it results : thanks! ...
I wrote a function like this: The result is ok but it attatch a warning "PDOStatement::bindValue(): SQLSTATE[HY093]: Invalid parameter number: ...
This error return to me when I executed the code Warning: PDOStatement::fetchAll() [pdostatement.fetchall]: SQLSTATE[HY000]: General error: Extra ...
I have a data table with 7 columns and 400 records. One of them is budget. I want to group the 400 rows by budget so that I get an array like this: ...