fatal error :uncaught error:call to undefined function mysql_connect() in c:\xampp\htdocs\login\check.php:12stack trace:#0{main} | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

fatal error :uncaught error:call to undefined function mysql_connect() in c:\xampp\htdocs\login\check.php:12stack trace:#0{main}

problem . connent my sql

17th Jun 2018, 8:19 AM
Mitra
Mitra - avatar
6 Respostas
+ 5
Hello, Mitra ! Please try mysqli_connect(MyHost, MyLogin, MyPassword, MyTable); http://php.net/manual/ru/function.mysqli-connect.php
17th Jun 2018, 8:24 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 4
It was removed in php 7. And has not been recommended since php 5. Use mysqli or pdo
17th Jun 2018, 8:25 AM
Toni Isotalo
Toni Isotalo - avatar
+ 2
unable to connect to mysql .
17th Jun 2018, 8:21 AM
Mitra
Mitra - avatar
+ 1
17th Jun 2018, 8:28 AM
Mitra
Mitra - avatar
+ 1
17th Jun 2018, 8:29 AM
Mitra
Mitra - avatar
+ 1
You shoild use: mysqli_connect(); instead,. For a local server(Xampp) use: mysqli_connect('localhost','root','','database_name');
17th Jun 2018, 10:12 AM
Peter Claver
Peter Claver - avatar