if(mysqli_num_row($query)>0){