Hello all
please forgive if this is in the wrong category, but i think it should be ok.
So, please have a look at the code below:
" private function __construct()
{
$dsn = 'mysql.x10hosting.com://skarecx1_rootassword@localhost/skarecx1_rss';
$this->_handle =& DB::Connect( $dsn, array() );
}
"
this function is pasted in a PHP file called rss_db, which is uploaded to the public_html folder. There's more code included in the file, but im not going to paste that here.
I have also created a database called skarecx1_rss (just _rss basically, but by default it adds skarecx1.
The database is skarecx1_rss the user is skarecx1_root. As i have two mysql databases running on skarecx1, i guess i need to specify that i want to use the _rss database after localhost?
So to my problem, how am i suppose to put in my credentials in the code? Is there any kind of template im not aware of?
i have tried with several different options, mysql://skarecx1_rootassword@localhost_skarecx1_rss etc etc.. i cant get it to work.
Someone got any inputs on this issue?
Thanks in advance.
please forgive if this is in the wrong category, but i think it should be ok.
So, please have a look at the code below:
" private function __construct()
{
$dsn = 'mysql.x10hosting.com://skarecx1_rootassword@localhost/skarecx1_rss';
$this->_handle =& DB::Connect( $dsn, array() );
}
"
this function is pasted in a PHP file called rss_db, which is uploaded to the public_html folder. There's more code included in the file, but im not going to paste that here.
I have also created a database called skarecx1_rss (just _rss basically, but by default it adds skarecx1.
The database is skarecx1_rss the user is skarecx1_root. As i have two mysql databases running on skarecx1, i guess i need to specify that i want to use the _rss database after localhost?
So to my problem, how am i suppose to put in my credentials in the code? Is there any kind of template im not aware of?
i have tried with several different options, mysql://skarecx1_rootassword@localhost_skarecx1_rss etc etc.. i cant get it to work.
Someone got any inputs on this issue?
Thanks in advance.