php - PDO Statement not returning result -
$query = $db->prepare("select * coupons deleted = ? limit ?, ?"); $query->bindvalue("1", 0); $query->bindvalue("2", 2); $query->bindvalue("3", 5); try{ $query->execute(); $result = $query->fetchall(); return $result; }catch(pdoexception $e){ die($e->getmessage()); }
unfortunately returns result no rows (but empty result not error), , when run sql query through phpmyadmin, fetches me multiple rows. suggestions helpful. can't through this.
first comment question helped me well: here
and solved problem. al above suggestions mentioned above tried , did not work.
Comments
Post a Comment