Can't connect MyPHPadmin to my front page


I am following an online tutorial that uses XAMPP and Apache to connect a database using MyPHPadmin and MySQL for user registration, usernames and passwords. All stored on the database for later login.

The tutorial says input the IP address of the website into the first part followed by Username, Password and Database name.

$con=mysqli_connect(‘IP address’,‘Username’.‘Password’) or die(“Unable to connect”);
mysqli_select_db(“database name”,$con);

Since I am using 000webhost, how do I input the IP address into the first part of the sqli_connect command? What is the IP address, or what should I use instead?


You can use localhost as long as the script is hosted on your hosting here at 000webhost :slight_smile: