Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysql_host = 'localhost';
- $mysql_user = 'samscom_sams';
- $mysql_pass = 's@ms2016';
- $mysql_db = 'samscom_sams';
- if(@mysql_connect($mysql_host,$mysql_user,$mysql_pass)){
- if(@mysql_select_db($mysql_db)){
- }else{
- die('Couldn\'t find the database.');
- }
- }else{
- die('Couldn\'t find the server.');
- }
- function chkconnection(){
- $conn = @mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die ("Journey to Database is Impossible, too many tolls");
- return $conn;
- }
- function journeyTodb(){
- @mysql_select_db("osops") or die( "Database are not found in your life");
- //return 'Well, the database is in ur life now';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement