SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function QueryOneValue($sql,$etiquette,$value)
  2. {
  3.   $stmt = $bd->prepare($sql);
  4.   $stmt->bindValue($etiquette, $value);
  5.   if ($stmt->execute()===false) {
  6.     throw new Exception('Erreur execution '.$sql);
  7.   }
  8. }
  9.  
  10. $info_pays_resid = QueryOneValue("select pays from avs_pays WHERE id_pays=:id_pays",":id_pays",$pays_resid);
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top