Entrar | Registrar | FAQ
Anonymous

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

+ Postar uma resposta

2 Mensagens Página 1 de 1


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

por CENT CI » Ter Set 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 de usuário

CENT CI

  • Mensagens: 1
  • Data de registro: Ter Set 27, 2016 10:30 am

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

por Farhin Qureshi » Qua Jan 11, 2017 11:31 am

You must put the following code:
Código: Selecionar tudo
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 de usuário

Farhin Qureshi

  • Mensagens: 45
  • Data de registro: Ter Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Postar uma resposta

Página 1 de 1