Warning error on localhost
When I am working on localhost and run the PHP pages, receive the message showed in the image attached, where I can find the error and how is possible share both connections on localhost and server together? I can use only a single connection and comment the other one for avoid trouble. Follow the connection used by me on localhost or server.
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
#connessione su localhost
#$hostname_localhost = "localhost";
#$database_localhost = "PowerStore";
#$username_localhost = "root";
#$password_localhost = "ma06ssimo";
#connessione su server
$hostname_localhost = "xx.xxx.xxx.xxx";
$database_localhost = "xxxxxxxxxx";
$username_localhost = "xxxxxxxx";
$password_localhost = "xxxxxxx";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Massimo