daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Sep 22nd, 2016 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $dbUser = 'root';
  4. $dbPass = 'CodersLab';
  5. $dbName = 'cinemas_db';
  6. $dbHost = 'localhost';
  7.  
  8.  
  9. $conn = new mysqli($dbHost, $dbUser, $dbPass, $dbName);
  10.  
  11.  
  12. //        $result['query'] = $conn->query($sql);
  13. //        $result['error'] = $conn->error;
  14.  
  15. $sql = "SHOW TABLES from `cinemas_db`";
  16.  
  17. var_dump($conn->query($sql));
  18.  
  19. $conn->error;
  20. $conn->errno;
  21. $conn->close();
  22. $conn = null;
  23.  
  24.  
  25. //while($table = mysql_fetch_array($result)) {
  26. //    echo($table[0] . "<br>");
  27. ?>
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