Example #1
0
 private function getSiteConfiguration()
 {
     try {
         $db = new db();
         $sql = "select * from siteConfiguration where site='" . Config::SITEKEY . "'";
         $result = $db->query($sql);
         if ($result) {
             /* Fetch the results of the query */
             while ($row = mysqli_fetch_assoc($result)) {
                 self::$payPalBusinessAccount = $row['payPalBusinessAccount'];
                 self::$payPalBusinessPW = $row['payPalBusinessPW'];
                 self::$payPalApiSignature = $row['payPalApiSignature'];
             }
             //while
         }
         //if
     } catch (Exception $ex) {
     }
     //try/catch
 }