Images from database column not loading
<p>CODE:   </p>

<pre><code>&lt;?php
    $page = $_GET['page'];
    $category = $_GET['cat'];
    $your_db = @ new mysqli("database","name","password");
    if (mysqli_connect_errno())
    {
    echo 'ERROR!
    '.mysqli_connect_errno()
    .' - Not connected : '.mysqli_connect_error().'
    ';
    die;
    }
    else
    {
    $db_connect = $your_db-&gt;select_db("databasename");
    if (!$db_connect)
    {
    echo 'ERROR CONNECT DATA BASE';
    die;
    }
    }
    echo '&lt;p&gt;';
    $query = "select distinct fldCity from info order by fldCity";
    $result = $your_db-&gt;query($query);
    $number_of_records = $result-&gt;num_rows;
    for ($i = 0; $i &lt; $number_of_records; $i++)
    {
    $row = $result-&gt;fetch_assoc();
    echo '&lt;a href="index.php?cat='.stripslashes($row['fldCity']).'"&gt;';
    echo stripslashes($row['fldCity']);
    echo '&lt;/a&gt;&amp;nbsp;/&amp;nbsp;';
    }
    echo '&lt;/p&gt;';
    if ($category)
    {
    $query = "select fldCompanyLogo, fldCompanyName, fldAddress, fldCity, fldProvince, fldPostalCode, fldMenuLink
    from info where fldCity = '$category' and length(fldCompanyLogo) &gt; 0 order by fldCity";
    }
    else
    {
    $query = "select fldCompanyLogo, fldCompanyName, fldAddress, fldCity, fldProvince, fldPostalCode, fldMenuLink
    from info where length(fldCompanyLogo) &gt; 0 order by fldCity";
    }

    $result = $your_db-&gt;query($query);
    $number_of_records = $result-&gt;num_rows;
    $num_pages = $number_of_records / 7;
    if (($number_of_records % 7) &gt; 0 )
    {
    $num_pages++;
    }
    if (strlen($page) == 0)
    {
    $page = 0;
    }
    else
    {
    $page = $page * 4;
    }
    echo '&lt;table border="0" cellspacing="10" cellpadding="10" style="border-collapse: collapse" bordercolor="#111111"&gt;';
    $row_num = 4;
    $result-&gt;data_seek($page);
    for ($i = $page; $i &lt; $number_of_records; $i++)
    {
    if ($row_num &lt;= 4)
    {
    echo '&lt;tr&gt;';
    for ($col_num = 0; $col_num &lt; 4; $col_num++)
    {
    $row = $result-&gt;fetch_assoc();
    echo '&lt;td&gt;';
    show_image(stripslashes($row['fldCompanyLogo']),stripslashes($row['fldCompanyName']));
    echo '
    ';
    echo '&lt;b&gt;&lt;font face="Tahoma" size="2"&gt;&lt;a href="mysite.ca/'.stripslashes($row['fldMenuLink']).'" target="_blank"&gt;&lt;/font&gt;';
    echo '&lt;font face="Tahoma" size="2"&gt;&lt;a href="'.stripslashes($row['fldMenuLink']).'" target="_blank"&gt;';
    echo stripslashes($row['fldCompanyName']);
    echo '&lt;/a&gt;';
    echo '
    ';
    echo stripslashes($row['fldCity']);
    echo '
    ';
    echo stripslashes($row['fldProvince']);
    echo '
    ';
    echo stripslashes($row['fldPostalCode']);
    echo '&lt;/td&gt;';
    }
    $row_num++;
    echo '&lt;/tr&gt;';
    }
    else
    {
    break;
    }
    }
    echo '&lt;/table&gt;';
    for ($j = 0; $j &lt; $num_pages; $j++)
    {
    $page_link = $j + 1;
    echo '&lt;font face="Tahoma" size="4"&gt;&lt;b&gt;&lt;a href="index.php?page='.$j.'&amp;cat='.$category.'"&gt;'.$page_link.'&lt;/a&gt;&lt;/b&gt;&lt;/font&gt;&amp;nbsp;';
    }
    echo '&amp;nbsp;'.$number_of_records;
    function show_image($image_name)
    {
    if (file_exists("'$image_name'"))
    {
    $dim_img = getimagesize('/images/'.$image_name);
    echo '&lt;img src="/images/'.$image_name.'" alt = '.$alt.' border=0 align="bottom"';
    echo 'width = '. $dim_img[100] .' height = ' .$dim_img[100] . ' /&gt;';
    }
    else
    echo 'Add your image here!';
    }
    ?&gt;
</code></pre>

<p>I am totally lost and I can't find the error to why the images from the database isn't loading with the  script. I highlighted the area in blue where I believe the error is to be. I just can't find any errors in that particular spot! All I want is the images from a column I have in my database to be fetched and connected to 'echo '

<p>No images are being displayed, and I can't find the error as to why the images aren't showing up</p>
