登录 | 注册 | FAQ
Anonymous

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

+ 发表回复

2 篇帖子 分页: 1 / 1


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

CENT CI » 周二 9月 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.
头像

CENT CI

  • 帖子: 1
  • 注册: 周二 9月 27, 2016 10:30 am

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

Farhin Qureshi » 周三 1月 11, 2017 11:31 am

You must put the following code:
代码: 全选
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.
头像

Farhin Qureshi

  • 帖子: 45
  • 注册: 周二 1月 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ 发表回复

分页: 1 / 1