Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?
  2. ob_start("gzip_handler");
  3. ob_start();
  4.  
  5. //Change the following four items to their appropriate values (Your MySQL host, Your database username, Your database password, Database Name). Enter your information in between the quotation marks.
  6. $host = 'localhost';
  7. $db_username = 'root';
  8. $db_password = '';
  9. $database = 'itgaga';
  10.  
  11. //MySQL - Do not touch.
  12. mysql_connect($host, $db_username, $db_password)or die(mysql_error());
  13. $dbquery = mysql_query("SHOW DATABASES;");
  14. $i = 0;
  15. while ($row = mysql_fetch_assoc($dbquery)) {
  16. $arr[$i] = $row['post_title'];
  17. echo "<br> $i=$arr[$i]";
  18. $i++ ;
  19. }
  20. mysql_select_db($database);
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement