Hi ,
Can anyone tell me is there any other connection method(mysql with php) other than this.Please help me..

$hostingname="localhost";
$username="root";
$password="";
$dbname="test";
$rr=mysql_connect("$hostingname","$username","$password")or die(mysql_error());
mysql_query($rr);
mysql_select_db($dbname) or die(mysql_error());

thanks
Punithapary

You can use mysqli or pdo, both are documented on php.net. If you have PEAR installed you can use MDB or MDB2. More info on pear.php.net

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.