mysql_connect() vs. mysqli_connect()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mmyrza01
Forum Newbie
Posts: 1
Joined: Mon Oct 22, 2007 10:41 am

mysql_connect() vs. mysqli_connect()

Post 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.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply