I only want to reset votes greater than 50, currently is resets every one
<?
include('mysql_connect.php');
$query = "SELECT id, votes, callback FROM websites";
$result = mysql_query($query) OR die(mysql_error());
$query = "UPDATE websites SET votes = 0";
$result = mysql_query($query) OR die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo ('Database has been cleaned with a tissue.');
?>
Im used to coding Java so im not sure if i can use this
$query = "UPDATE websites WHERE votes >= 50 SET votes = 0";
Thanks for your help