Guest User

Untitled

a guest
Oct 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function get_contents($SQL){
  2. $conTemp = new mysqli("host ip", "host user", "host pass");
  3. $conTemp->select_db("host db name");
  4. if(!$result = $conTemp->query($SQL)){
  5. return die("Query Failed with error code: " . '(' . $conTemp->connect_errno . ') '
  6. . $conTemp->connect_error);
  7. }
  8. return $result;
  9. }
Add Comment
Please, Sign In to add comment