When I try to enter a page on my site I get this error
Notice: Undefined variable: id in C:\Users\Name\Desktop\Folder\htdocs\include\Earth.php on line 14
The php file looks like this in the editor
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
session_start();
$verbindung = mysql_connect("localhost","root","Palmen162");
mysql_select_db("lan");
if(isset($_SESSION['id'])) {
// do the following query
}
mysql_query("UPDATE users SET ally='3' WHERE id='{$id}'");
?>