I want to connect to database, which is located on computer A from computer B. I tried everything what is posted in internet, nothing helped. I don't know what is wrong with that. please help me if u can ((
Let's say this was your connection part of your script.
$con = mysqli_connect("localhost","database_user","my_password","animals");
Be sure to change the "localhost"
to the correct IP/network address of computer A.
You may need to port forward on computer A if both computers are not on the same network too...
But if they aren't on the same network then why bother with all that? I'd recommend getting some real web hosting and it comes very cheap! Even free ones offer free MySQL databases just not with remote access.