WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAMPP?
2 posts Page 1 of 1
WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAMPP?
mysql_connect("localhost", "root", "") or die (mysql_error());Is it suppose to be in the same page, or am suppose to create another php file for it.
Re: WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAM
You must put the following code:- Code: Select all
mysql_connect("localhost", "root", "") or die (mysql_error());
and no need to make the different file for it .If it occurs error then you need to recheck the password.
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Page 1 of 1