- 1
I am unable to solve an error which I'm getting in my php project.
i saved my file in htdocs and given a proper database connection but still I'm not getting proper output.can anyone tell me that how to connect file with database?
9 Answers
+ 1
Please show code first then i will tel you better results how to connect etc....
+ 1
Remove password and try with new db again
0
hi I'm getting error only in the line in which i have given database connection and i.e
$conn=mysql_connect("localhost","root","sumit@1234");
$db=mysql_select_db('students',$conn);
0
$db=mysql_select_db("students");
0
Try this and what kind error are show
0
I'm getting this error:-
Fatal error: Uncought Error: Call to undefined function mysql_connect() in c:\xampp\htdocs\user_registration.php:55 Stack trace: #0 {main} thrown in C:\xampp\htdocs\user_registarion.php on line 55
0
Once remove your phpmyadmin password and connect with blank password
0
Use "mysqli_connect" if you still face error
0
$con = mysqli_connect("127.0.0.1","root","pass","your_database");