Anmelden | Registrieren | FAQ
Anonymous

WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAMPP?

+ Antwort erstellen

2 Beiträge Seite 1 von 1


WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAMPP?

von CENT CI » Di Sep 27, 2016 10:40 am

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.
Benutzeravatar

CENT CI

  • Beiträge: 1
  • Registriert: Di Sep 27, 2016 10:30 am

Re: WHERE CAN I PUT THIS CODE THAT CONNECT TO DATA BASE XAM

von Farhin Qureshi » Mi Jan 11, 2017 11:31 am

You must put the following code:
Code: Alles auswählen
mysql_connect("localhost", "root", "") or die (mysql_error());
on the same PHP page
and no need to make the different file for it .If it occurs error then you need to recheck the password.
Benutzeravatar

Farhin Qureshi

  • Beiträge: 45
  • Registriert: Di Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Antwort erstellen

Seite 1 von 1