This error appear and i do not know why, here is my code:
// Create connection
$conn = @mysqli_connect($server,$user,$pass,$dbname) or die('can not connect to php');
$sql_store = "INSERT into test (userName, userAgent, language,
javaEnabled, height) VALUES ('$userName', '$userAgent',
'$language', '$javaEnabled', '$height')";
$sql = mysqli_query($conn, $sql_store) or die(mysqli_error($conn));
and this is my javascript for the height:
function height(){
var height = screen.height;
document.getElementById('height').innerHTML = height;
return height;
}
and here is the passing
xmlhttp.open("POST", example.com/ex.php", true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send("userName=" + checkCookie() +
"&userAgent=" + userAgent() +
"&language=" + language() +
"&javaEnabled=" + javaEnabled() +
"&height=" + height()); /* fire and forget */
return true;