Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 php connect mysql~

views
     
se7en
post Jan 28 2006, 12:45 PM

resistance is futile
Group Icon
Admin
1,806 posts

Joined: Jan 2003
From: Captain's Cabin, Black Pearl

it should be mysql_connect('localhost',$user,$password);

you can add in the following lines below that to see if it connected or what is the error (database permission etc etc)

if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';


 

Change to:
| Lo-Fi Version
0.0130sec    1.29    6 queries    GZIP Disabled
Time is now: 23rd December 2025 - 12:41 PM