Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- /* MySQL Server IP */
- $_MySQL['HOST'] = '127.0.0.1';
- /* MySQL Username */
- $_MySQL['USER'] = 'User-001';
- /* MySQL Password */
- $_MySQL['PASS'] = '123456789';
- /* MySQL Database */
- $_MySQL['DB'] = 'Database-001';
- /* Do not edit anything below!
- Connecting to MySQL.. */
- if(!mysql_connect($_MySQL['HOST'], $_MySQL['USER'], $_MySQL['PASS'])){
- echo 'Error connecting to MySQL!'; exit;
- }
- /* Selecting the Database.. */
- if(!mysql_select_db($_MySQL['DB'])){
- echo 'Error Selecting the Database!'; exit;
- }
- /* Connected!
- Undoing the MySQL variable.. */
- unset($_MySQL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement