php + get sql query
echo $select->__toString();
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us