I am trying to do a connection with XAMPP and sql server. but when ever I try to enter data or connect to the database, I get this error.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\Maxipak\process.php:3 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Maxipak\process.php on line 3
My code on line 3 looks like this:
$conn = mysql_connect ("localhost","root","");
mysql_*functions are deprecated usemysqli_*instead so then you will have no problems..! - Umair Shah YousafzaiXAMPPwith PHP7 so that's why you are getting the undefined function error then..! - Umair Shah Yousafzai