whats difference between mysql_connect and mysqli_connect ?
In my script, when I used mysql_connect for connecting with database, it did not work, but when I used mysqli_connect, I coulkd connect with database. So whats the difference and why are there two ?
I saw in some sample scripts online that they have used mysql_connect. So when to use mysql_connect and when to use mysqli_connect ?