Certify Urself
  Site Stats

Call to undefined function mysql_connect()

 

Sharing my PHP experience in this entry, I remember hitting an error when I first started out on PHP. It was an error that looked so simple yet caused me hours of frustration, only to realise it was my own stupid mistake.

 

If you happen to bump into the above error like I did, let me reveal the truth now. The problem most probably lies in your php.ini file.

 

1. Either you have not activated the required MySQL extensions,

2. or your extensions failed to get picked up (check your extensions_dir),

3. or you probably placed your php.ini file at the wrong place ( like I did =X )

 

Happy PHP-ing!