I attempt to insert data with this code
$username = mysqlirealescapestring($mysqli, $POST["username"]);
$userpass = mysqlirealescapestring($mysqli, $POST["userpass"]);
$useremail = mysq...
First off I connect using this code here.
php
$mysqli = new mysqli("localhost", $username, $password, $database);
This works fine, I log in under root, (I know I should create a new user for security, but this so far...
I am trying to connect using this code.
$username = 'root';
$password = 'password';
$database = 'localhost';
$mysqli = new mysqli("104.236.80.149", $username, $password, $database);
if ($mysqli->connecterrno) {
...