Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class api extends db_connect
  4. {
  5.     public function __construct($dbo = NULL)
  6.     {
  7.         parent::__construct($dbo);
  8.  
  9.     }
  10.  
  11.     static function printError($error_code, $error_description = "unknown")
  12.     {
  13.         $result = array("error" => true,
  14.                         "error_code" => $error_code,
  15.                         "error_description" => $error_description);
  16.  
  17.         echo json_encode($result);
  18.         exit;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement