Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. //opens connection to mysql server
  3. $dbc = mysql_connect('localhost','xxxxxxxxxxxx','xxxxxxx');
  4. if (!$dbc) {
  5. die('Not connected:' . mysql_error());
  6. }
  7.  
  8. //select database
  9. $sql = " SELECT * FROM `xxxxxxxxx` LIMIT 0, 30 ";
  10. if (!$db_selected)
  11. {
  12. die ("cant connect :" . mysql_error());
  13. }
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement