Conection to Data Base


#1

Hi, I want to connect to my DB and I can’t do it, these is my codding:

$base=“id1762849_u122088968_uno”;
if (!($link=mysqli_connect(“localhost”,“id1762849_u122088968_root”,“genike”, $base)))
{
return 0;
}

Can you tell how to do it?
thank you very much.
Gerardo


#2

Your database is id1762849_u122088968_uno
Your user is id1762849_u122088968_root
Password: whatever you set
host: localhost

Remember you can only use database on your hosting i.e. files you upload to 000webhost.com

You cannot use RemoteMYSQL i.e. from a desktop application on your PC or integrating it into an Android application.