Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //opens connection to mysql server
- $dbc = mysql_connect('localhost','xxxxxxxxxxxx','xxxxxxx');
- if (!$dbc) {
- die('Not connected:' . mysql_error());
- }
- //select database
- $sql = " SELECT * FROM `xxxxxxxxx` LIMIT 0, 30 ";
- if (!$db_selected)
- {
- die ("cant connect :" . mysql_error());
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement