SHARE
TWEET

getContact

a guest Mar 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   public function getContactpersoonData($info, $rol) {
  2.     // $rol = 0;
  3.     if(!empty($_SESSION['vestigingnummer'])) {
  4.       $this->database->connect();
  5.  
  6.       $sql = "SELECT * FROM contactpersonen WHERE VESTNR = ".$_SESSION['vestigingnummer']." AND ROL = '".$rol."'";
  7.       $q = $this->database->connection->query($sql) or die("failed!");
  8.  
  9.       while($r = $q->fetch(PDO::FETCH_ASSOC)) {
  10.         $data[]=$r;
  11.       }
  12.       return $data[0][$info];
  13.     } else {
  14.       return false;
  15.     }
  16.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top