0

Php mysql in array query not working [closed]

asked 2017-03-01 05:26:23 +0800

grabbitmedia gravatar image grabbitmedia
1
http://www.grabbitmedia.c...

$query = "SELECT adminname FROM admin WHERE admincode IN('123','6895')"; try { $result = $this->dbh->prepare($query); $result->execute($parameter); $data = $result->fetch(\PDO::FETCH_ASSOC); return $data; } catch (\PDOException $e) { return false; }

what is the error of this code i can't able to get return value

i run the same query in mysql working fine.

delete flag offensive retag edit

The question has been closed for the following reason "question is off-topic or not relevant" by cor3000
close date 2017-03-02 08:39:09

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-03-01 05:26:23 +0800

Seen: 29 times

Last updated: Mar 01 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More