title: Why my query is always return to else statement even though my selected data is exist?
body: <pre><code>$sql0unded = "SELECT * FROM tomb";
  $query0unded = mysqli_query($dbconn,$sql0unded) or die ("Error: ".mysqli_error($dbconn).header("Refresh: 1,index.html"));
  $row0unded = mysqli_num_rows($query0unded);
  if($row0unded==1)
  { echo "yeayy";}
  else
  {header("Refresh:1;byebye.php");}
  </code></pre>
  
  <p>This is my database</p>
  
  <pre><code>CREATE TABLE `tomb` (
    `id` int(100) NOT NULL,
    `ded` date NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  INSERT INTO `tomb` (`id`, `ded`) VALUES
  (1, '2019-01-01'),
  (2, '2019-01-02'),
  (3, '2019-01-03'),
  (4, '2019-01-04'),
  (5, '2019-01-05'),
  (6, '2019-01-06'),
  , '2019-02-10');
  
  ALTER TABLE `tomb`
    ADD PRIMARY KEY (`id`);
  </code></pre>