mind.werx.co76
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 0
i was trying to connect to my MySQL server..
You can see the page here..
was there something wrong with the code?
please help me..
PHP:
<?php
$link = mysql_connect('localhost', 'mindwerx_root', 'mypassword');
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}
else
{
echo "Connected!<br/>";
}
$db = mysql_select_db('mindwerx_testdatabase');
if(!$db) {
die("Unable to select database");
}
?>
was there something wrong with the code?
please help me..