i want to change my question abit i want it to display how many people have the number one in the coloum online i have done the coding for it to update the user in the table here is the code!
$sql='UPDATE users SET `online` = "1" WHERE `Username` = "' . mysql_real_escape_string ( $_POST['username'] ) . '" AND `Password` = "' . mysql_real_escape_string ( md5($_POST['password'] ) ) . '"';
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}