Unable to connecy Mysql Database

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Unable to connecy Mysql Database

Postby nrmehta5 » 25. June 2016 12:49

I have just installed xampp and while running php codes through notepad++ I am getting Following error,I have attached written code also,
can anybody help me?Do I need to configure phpAdmin?
Nitin

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\dashboard\Nitin\TABLE\table.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\dashboard\Nitin\TABLE\table.php on line 9<html>
<head>
<title>
Table Connectivity
</title>
</head>
<body>
<?php
$con=mysql_connect("localhost","root","");
if($con)
{
$db=mysql_select_db("nitin1");
if($db)
{
echo "Database connection Successful";
}
else
{
echo "Database Connectivity Failed";
}
}
?>
</body>
</html>
nrmehta5
 
Posts: 1
Joined: 25. June 2016 12:20
XAMPP version: 3.2.2
Operating System: Windows10

Re: Unable to connecy Mysql Database

Postby Altrea » 25. June 2016 13:40

We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 33 guests