I'm a newbie at this so if someone could please help me out:
I have : PHP Version 5.2.3, Apache 2.2.4, and mySQL Version 4.1.22 on Windows XP.
I have PHP working independantly. I have mySQL client working perfectly by itself. When trying to connect to the mySQL database, using PHP, i don't get anything: only a blank page. I need help! I've been struggling for 22hrs now trying to get it to work.
This is what i've done:
I created a user in mySQL client that has basic privalages on "sitename" database that i've created using the following:
[code=mysql]
GRANT SELECT, INSERT,UPDATE, DELETE ON sitename. * TO 'mathurinjerry' @'localhost' IDENTIFIED BY 'yellow83';
FLUSH PRIVILEGES; //to apply changes
[/code]
Then when i tried to create a php script, and uploaded it in my server, all I get is a blank page.
This is the script i used:
[PHP]<?php
echo mysql_connect ('localhost','m athurinjerry',' yellow83') or die('Cannot connect to database because:'.mysql _error());
?>[/PHP]
Can someone please help me PLEASE!
I have : PHP Version 5.2.3, Apache 2.2.4, and mySQL Version 4.1.22 on Windows XP.
I have PHP working independantly. I have mySQL client working perfectly by itself. When trying to connect to the mySQL database, using PHP, i don't get anything: only a blank page. I need help! I've been struggling for 22hrs now trying to get it to work.
This is what i've done:
I created a user in mySQL client that has basic privalages on "sitename" database that i've created using the following:
[code=mysql]
GRANT SELECT, INSERT,UPDATE, DELETE ON sitename. * TO 'mathurinjerry' @'localhost' IDENTIFIED BY 'yellow83';
FLUSH PRIVILEGES; //to apply changes
[/code]
Then when i tried to create a php script, and uploaded it in my server, all I get is a blank page.
This is the script i used:
[PHP]<?php
echo mysql_connect ('localhost','m athurinjerry',' yellow83') or die('Cannot connect to database because:'.mysql _error());
?>[/PHP]
Can someone please help me PLEASE!
Comment