saving . . . saved error while running the same code has been deleted. error while running the same code has been hidden .
error while running the same code
Title
Question
What to do to remove the fatal error:Call to undefined function mysql_connect() in connect. php

PHP-and-MySQL MySQL-Part-2 7-8 min 30-40 sec 07-09-17, 6:32 a.m. prateeksha_dixit_

Answers:

Hello Prateeksha,

Kindly let me know the following details.

1. OS name and Version number
2. XAMPP version number
3. PHP version number.


07-09-17, 11:21 a.m. pravin1389


Use mysqli_connect instead of mysl_connect.

03-10-17, 12:27 p.m. Kuldeep7649


in older version of php u should get error like this u need to use mysqli instead of mysql
or use pdo object
26-02-18, 11:06 a.m. kaushikpardhi5@gmail.com


Log-in to answer to this question.