MySQL Forums
Forum List  »  PHP

Re: Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\insert.php:17
Posted by: Jawad Hussain
Date: February 13, 2016 03:39AM

Hi, thank you all for your concern.
I was using XAMPP version 7, and in it, I tried adding the mysql.dll ext in php.ini file
but the issue was still there. I understand that mysql() is now being used as mysqli(), but the instructor was pushing me to use the same mysql() and not mysqli(), so the then, I searched for the old version of XAMPP, version 3.2, installed it, and the problem solved. He (my instructor) told me that keep using mysql() commmand, it will not give any problem on server.
So, now, I'm using XAMPP 3.2, and its working with mysql_connect() and all mysql() functions... tell me if I could use it in future to maintain websites on server. and also, if it will give any error, then kindly suggest me the video tutorials where I learn using mysqli() and PDO, thank you in adavance...

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.