Notice: Undefined offset: 0 in php
<p>I am trying to get some company logos to display in 4 column table. this is the code i have. if i just display them without the result going in to 2 or more columns i get this error </p>

<blockquote>
  <p>Notice: Undefined offset: 0 </p>
</blockquote>

<p>my code :- </p>

<pre><code> &lt;td&gt;&lt;table width="100%" border="0"&gt;
        &lt;?php 

            $sqlShowLOGO = "SELECT filename FROM tblcompanylogo" ;
            $resultShowLOGO = mysqli_query($con, $sqlShowLOGO);
            $record_count = 0;
                while ($rowLOGO = mysqli_fetch_assoc($resultShowLOGO))
                {

    if ($record_count % 4==0 &amp;&amp; $record_count != 0)
    {
        echo '&lt;/tr&gt;&lt;tr&gt;';
    }
    echo '&lt;td&gt;';

    for ($i=0; $i&lt; count($rowLOGO); $i++)
    {
        echo $rowLOGO[$i];
    }
    echo '&lt;/td&gt;';

    $record_count++;
        }
        ?&gt;
      &lt;/table&gt;&lt;/td&gt;
</code></pre>

<p>Can someone please  help me to correct this issue</p>