Click here to Skip to main content
15,921,382 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
PHP
<?php
//Connect To DB
$con=mysqli_connect("localhost","root","","test");
//Check The Connection
if(mysqli_connect_errno())
{
echo"Failed To Connect To Mysql: ".mysqli_connect_error();
}
?>
Posted

1 solution

replace mysqli_connect with mysql_connect
 
Share this answer
 
Comments
omar-ahmed99 1-Aug-14 11:48am    
no it runs without changes
thanx NIRAV PRABTANI

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900