0

Data base

Guys i need help I want to connect a database to a login form

29th Sep 2023, 7:14 PM
Fibi Amanga
Fibi Amanga - avatar
1 Resposta
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); ?>
30th Sep 2023, 1:11 AM
The Darkness
The Darkness - avatar