Erro
Warning: mysqli_connect() [function.mysqli-connect]: (HY000/1130): Host '10.1.1.25' is not allowed to connect to this MySQL server in /home/a1570220/public_html/register.php on line 2
Warning: mysqli_prepare() expects parameter 1 to be mysqli, boolean given in /home/a1570220/public_html/register.php on line 8
Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, null given in /home/a1570220/public_html/register.php on line 9
Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, null given in /home/a1570220/public_html/register.php on line 10
{"success":true}
Aqui o código:
<?php
$con = mysqli_connect("confidencial", "confidencial", "confidencial", "confidencial");
$email = $_POST["email"];
$senha = $_POST["senha"];
$statement = mysqli_prepare($con, "INSERT INTO user (email, senha) VALUES (?, ?)");
mysqli_stmt_bind_param($statement, "siss", $email, $senha);
mysqli_stmt_execute($statement);
$response = array();
$response["success"] = true;
echo json_encode($response);
?>
Onde diz confidencial são os dados privados do meu db por isso troquei.
Como posso resolver isso?