SHARE
TWEET

Untitled

a guest Jan 20th, 2017 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $idNum = 1;
  3. $servername = "censored";
  4. $username = "censored";
  5. $password = "censored";
  6. $db_name = "censored";
  7. $conn = mysqli_connect($servername, $username, $password, $db_name);
  8.  
  9. if ($conn->connect_error)
  10. {
  11.     die("Connection failed: " . $conn->connect_error);
  12. }
  13.  
  14. $sql = "SELECT Status FROM SavedStatuses WHERE statusID=1;";
  15. $statusQuery = mysqli_query($conn, $sql);
  16. $fetchRes = mysqli_fetch_assoc($statusQuery);
  17.  
  18. if($conn->query($sql) == TRUE)
  19. {
  20.     echo $fetchRes;
  21. } else {
  22.     echo "Failed to retrieve status, error: " . $conn->error;
  23. }
  24. ?>
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
 
Top