Anybody help?
Cannot connect to mySql database.
Get this message:-
Couldn't connect to database
Database not found
PHP Warning: mysql_connect(): Access denied for user: [email protected]' (Using password: NO)
using this:
<?php
$usr = 'PREFIX_USERNAME';
$pwd = 'PASSWORD';
$db = 'PREFIX_DATABASENAME';
$host = 'mysql.jodoshared.com';
$id = mysql_connect($host);
if(!$id)
{
echo "Couldn't connect to database";
}
mysql_select_db($db) or die('Database not found');
It worked on my local server on Windows PC and can connect to database using EMS MySql Manager.
Any idea's
www.wardead.net
Liam
PS: I am a newbie at PHP/MySql
Cannot connect to mySql database.
Get this message:-
Couldn't connect to database
Database not found
PHP Warning: mysql_connect(): Access denied for user: [email protected]' (Using password: NO)
using this:
<?php
$usr = 'PREFIX_USERNAME';
$pwd = 'PASSWORD';
$db = 'PREFIX_DATABASENAME';
$host = 'mysql.jodoshared.com';
$id = mysql_connect($host);
if(!$id)
{
echo "Couldn't connect to database";
}
mysql_select_db($db) or die('Database not found');
It worked on my local server on Windows PC and can connect to database using EMS MySql Manager.
Any idea's
www.wardead.net
Liam
PS: I am a newbie at PHP/MySql