Hello everyone, I have a unusual problem... I have my own MYSQL server but I cannot in any way get php scripts to connect to it. This has been going on for over a month now and x10 support has not helped. Here is one of the scripts im using to connect to it....
<?php
$options = array (
'DBHost' => 'xx.xx.xx.xxort',
'DBUser' => 'xxxxx',
'DBPass' => 'xxxxx',
'DBName' => 'xxxxx',
'ServerName' => 'xxxxx',
'ServerURL' => 'xxxxx'
);
class sql {
function sql() {
global $options;
$this->connection = @mysql_connect($options['DBHost'],$options['DBUser'],$options['DBPass'])
OR die('MySQL Connection Error...');
mysql_select_db($options['DBName'])
OR die('Database selection Error...');
}
Any suggestions or help is greatly appreciated.
<?php
$options = array (
'DBHost' => 'xx.xx.xx.xxort',
'DBUser' => 'xxxxx',
'DBPass' => 'xxxxx',
'DBName' => 'xxxxx',
'ServerName' => 'xxxxx',
'ServerURL' => 'xxxxx'
);
class sql {
function sql() {
global $options;
$this->connection = @mysql_connect($options['DBHost'],$options['DBUser'],$options['DBPass'])
OR die('MySQL Connection Error...');
mysql_select_db($options['DBName'])
OR die('Database selection Error...');
}
Any suggestions or help is greatly appreciated.