i tried this and i still get nothing but a blank page:
[PHP]
<? error_reporting (E_ALL);
ini_set('displa y_errors', TRUE);
$con=mysql_conn ect('localhost' ,'__MUNGED__',' __MUNGED__');
if($con){
echo"connected successfully";
}else{
echo"could not connect to the database";
}
?>
[/PHP]...
User Profile
Collapse
-
-
How to connect to MySQL in PHP
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...Last edited by Atli; Aug 25 '07, 11:20 PM. Reason: Added [code] tags and changed unnecessary bold text.
No activity results to display
Show More
Leave a comment: