Page 1 of 1

mysql_connect() vs. mysqli_connect()

Posted: Mon Oct 22, 2007 10:59 am
by mmyrza01
Hi, I am using PHP 5.2.4 and MySql Server 5.0. The problem is that whenever I use PHP functions like mysql_connect() or mysql_result() I got error like "Undefined function mysql_connect()" but when I use mysqli_connect() it works fine. What is the reason?
Thank you.

Posted: Mon Oct 22, 2007 11:32 am
by s.dot
You haven't configured support for the mysql extension and library. It was configured by default in php4, but in php5 you have to specifically enable the extension if you want to use it.