saving . . . saved Error while connecting to mysql database has been deleted. Error while connecting to mysql database has been hidden .
Error while connecting to mysql database
Title
Question
I get the following error messege while conneting to database:
"Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\\xampp\\htdocs\\connect.php:3 Stack trace: #0 {main} thrown inC:\\xampp\\htdocs\\connect.phpon line3"
I am using XAMPP version 7.1.9 on OS Windows 7 SP 1.
php version is as same as xampp version

PHP-and-MySQL MySQL-Part-2 01-02 min 50-60 sec 30-09-17, 6:10 p.m. Kuldeep7649

Answers:

I used mysli_connect instead of mysql_connect.Now it is working
03-10-17, 12:26 p.m. Kuldeep7649


Log-in to answer to this question.