Probelm in connecting php with Mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
arjun1980
Forum Newbie
Posts: 1
Joined: Sun Oct 30, 2005 10:18 pm

Probelm in connecting php with Mysql

Post by arjun1980 »

Hello

I am getting problem in connecting php with mysql, I have checked all the connections in my db.inc file and have given the right host name , i wm using the localhost only with the apache web server. I have given all the connection in that with the user name and password and database name as the same which i have made in the database in mysql. , i think there is some problem when i made the database in mysql, i have used the root and then made a user with passowrd and then made the databse , but i am getting trouble in granting the user the powers to access the root, i have used the grant command with whole syntax, but then alsi it is not working. There is no error on the main page of web site but when i login the name with the password then it just show a blank page.
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

code?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

always add :arrow: error_reporting(E_ALL); on top when developing... and I think the problem is with the code or as you say in setting up the GRANT priviledges.
Post Reply