what is the official value of an empty sql result(from a loop)
<p>What i mean is, for example, if i search for something on an SQL table, and it returns 0 / nothing, is that <strong>null</strong> or <strong>empty</strong> or does it result in an empty <strong>""</strong>, ???</p>

<p>im getting back into php and trying to loop through a db like so</p>

<p>pseudo code</p>

<pre><code>while($row = mysqli_fetch_array($var here that has the query to the db and connection)){
      echo $row[//something pulled from table to be read back]
}
</code></pre>

<p>but lets say that the search query didn't return any results or that <code>$row</code> doesn't equal to anything because for whatever reason, the value searched for in the db doesn't exist,</p>

<p>how then can i check for the empty-ness of row??? </p>

<p>if the searched for item doesn't exist in the db, then <code>$rows</code> value becomes what exactly? <strong>null/empty/or empty string</strong> or something else???</p>

<p>depending on the value of <strong>row</strong>, do i test for <strong>[isset / !isset]</strong> or <strong>[empty / !empty]</strong> ??? or is the <strong><em>only</em></strong> way to test for empty <code>$row</code> to do a  (pseudo) <code>$x =mysqli_num_rows(var here) / if ($x == 0 ) //do something,</code> ???</p>

<p>Thanks in advanced for clarification.</p>
