Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //I wonder...
- $SQLhostName = 'mysql.hostinger.ru';
- $SQLuserName = 'u296353873_stuck';
- $SQLpassword = 'rjn05*03';
- $SQLlocalDatabase = 'u296353873_after';
- $SQLglobalDatabase = 'u296353873_after';
- $SQLconnect = mysql_connect($SQLhostName, $SQLuserName, $SQLpassword);
- if (!$SQLconnect) {
- die('Could not connect: ' . mysql_error());
- }
- else{
- }
- //
- $con = $SQLconnect;
- // Server: Database:
- function db_select_local() {
- $db_selected = mysql_select_db($SQLlocalDatabase, $SQLconnect);
- if(!$db_selected) {
- die('could not connect to the local mysql database: '.mysql_error());
- }
- }
- function db_select_global() {
- $db_selected = mysql_select_db($SQLglobalDatabase, $SQLconnect);
- if(!$db_selected) {
- die('could not connect to the global mysql database: '.mysql_error());
- }
- }
- db_select_global();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement