las consultas que usan la palabra clave LIMIT con dos parametros no me funcan.
Código PHP:
$query= 'SELECT * FROM table WHERE date_reg>? LIMIT ?,?';
$values = array('YYYY-MM-DD', 0, 5);
$sth = $dbh->prepare($query);
$sth->execute($values);
Entonces como puedo reescribir mis consultas...
Cita:
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''0','5'' at line 1