Welcome Guest, Not a member yet? Register   Sign In
Query Bindings Problem
#1

Hello!!

I have the next sentence, using pdo:

I have a problems where in the array parameters appear a variable type string:


$var1 = 1;
$var2 = 2;
$var3 = 'A';

$sentence = "SELECT column1, column2, column3 FROM table WHERE column1 = ? AND column2 = ? and column3 = ?";
$query = $this->db->query($sentence, array(intval($var1), intval($var2), strval($var3)));

And I get the next response:

A Database Error Occurred
Unsupported feature of the database platform you are using.


Where is the error??
Reply


Messages In This Thread
Query Bindings Problem - by abelhermar - 06-10-2020, 08:12 AM
RE: Query Bindings Problem - by php_rocs - 06-10-2020, 09:15 PM
RE: Query Bindings Problem - by abelhermar - 06-12-2020, 08:06 AM
RE: Query Bindings Problem - by dave friend - 06-12-2020, 10:17 AM
RE: Query Bindings Problem - by abelhermar - 06-12-2020, 12:03 PM
RE: Query Bindings Problem - by dave friend - 06-12-2020, 06:58 PM
RE: Query Bindings Problem - by abelhermar - 06-15-2020, 10:47 AM
RE: Query Bindings Problem - by php_rocs - 06-15-2020, 06:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB