Connection refused ---- What is wrong


#1

Hello. Please I need your help to understand what is wrong in this statement
$con = mysqli_connect(“localhost:3306”,“id6734811_asoft”,“u”,“p”);

u is the user name
p is the password
I just change and very password. What is wrong ?
This is my site: https://andrasoft.000webhostapp.com/test01.php
Thanks !


#2

Hi !

Use only localhost as host.


#3

It’s not working !!! I fix it with PDO objects