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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -