Getting Array to Display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a form that I have a (ever growing) list of checkboxes,  Here is a
sample of  the code for it.

 <input name="keyword[]" type="checkbox" value="fox" />

It seems to go in, when I say seems to, I get a result of Array in the
table, the code is listed below.  I have tried various solutions I found in
searching the issue, but have only been able to so far get Array.

  echo '<table border="1"><th>Id Number</th><th>Date
Entered</th><th>Caption</th><th>Where
Taken</th><th>Keywords</th><th>Description</th><th>Image</th>';
  while ($row = mysqli_fetch_array($data)) {

    echo '<tr><td>' . $row['image_id']. '</td>';
   echo '<td>' . $row['submitted']. '</td>';
    echo '<td>' . $row['caption']. '</td>';
    echo '<td>' . $row['where_taken'] . '</td>';
    echo '<td>' . $row['keyword']. '</td>';
       echo '<td>' . $row['description'] . '</td>';
      if (is_file($row['image_file'])) {
      echo '<td><img src="'.$row['image_file'].'" width="100px"
height="100px"/></td>';
      }

As a bonus question, does anyone have any idea why the image would show up
in IE8, and not FF?

Thanks for your help.

Gary



__________ Information from ESET Smart Security, version of virus signature database 5047 (20100421) __________

The message was checked by ESET Smart Security.

http://www.eset.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux