Answers for "mysql get query result php"

CSS
0

php + get sql query

echo $select->__toString();
Posted by: Guest on June-10-2020
0

php get result sql server

//on sql server
public function get_data_from($id){
  $request = "SELECT * FROM yourTable WHERE id = ?";

  //preparing the request
  $stmt = $this->dbh->prepare($request);

  //executing the request
  $stmt->execute( array($id)  );

  //fetching the result of the request
  $result = $stmt->fetchAll();

  return $result;
}
Posted by: Guest on May-31-2021

Browse Popular Code Answers by Language