I have a problem to do connection with mysql. For information, i'm using php 4 and mysql3.23. The error came out "unable to connect to mysql". This is my sample coding.
$dbcnx = mysql_connect('localhost', 'root', 'maranata');
if(!$dbcnx){
echo('<p>Unable to connect to the ' .
'database server at this time.</p>' );
exit();
}
mysql_select_db('WITSJ', $dbcnx);
if (!mysql_select_db('ijdb')) {
exit('<p>Unable to locate the joke ' .
'database at this time.</p>');
}
Can somebody please tell me where are the mistake. Thank you so much.