Hi, i just hosted my website on 000webhost for free and somehow i cant connect with my database resulting to that i cant login on my website. How can i solve that? Please help. thank you
Heres my code for db connection
'<?php
$db_host="mysql1.000webhost.com";
$db_username="a1924971_user";
$db_password="*************";
$db = "a1924971_learn";
$cn = mysqli_connect($db_host,$db_username,$db_password,$db);
if(!$cn){
die(mysqli_connect_error());
}
?> '