Zaloguj | Zarejestruj | FAQ
Anonymous

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

+ Odpowiedz

Posty: 2 Strona 1 z 1


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

przez CENT CI » Wt wrz 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.
Avatar użytkownika

CENT CI

  • Posty: 1
  • Dołączył(a): Wt wrz 27, 2016 10:30 am

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

przez Farhin Qureshi » Śr sty 11, 2017 11:31 am

You must put the following code:
Kod: Zaznacz cały
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.
Avatar użytkownika

Farhin Qureshi

  • Posty: 45
  • Dołączył(a): Wt sty 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Odpowiedz

Strona 1 z 1