0
Data base
Guys i need help I want to connect a database to a login form
1 ответ
0
Fibi Amanga
If you already have the database created, then this should work to connect.
It would go before the html code.
<?php
$dbhost = 'localhost:3036';
$dbuser = 'guest';
$dbpass = 'guest123';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(! $conn ) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($conn);
?>