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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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