$query = "UPDATE `orders` SET withVideo = $withVideo, aninumber = $ani WHERE rtbeUsername = $number AND pinAccountId = $pinAccountId"; $result = mysql_query($query, $switch); var_dump($result);