do you really know what you're doing hereπ
$values = implode(",",$value_array);
$values = explode(",",$values);
at first you put all values together in one string, after that
you divide it back to an array, this is crap
you're already builing the array in the foreach loop
anyway, try this for the image issue:
$entries_per_row = 7;
$images = array(1); // contains all columns which are a picture,
// starting with 0
// multiple values separated by ,
for ($i=0; $i < $total; $i++)
{
if (($i % $entries_per_row) == 0) echo "<tr>"; // new row
if (in_array($i, $images)) echo "<td><img src=\"" . $values[$i] . "\"></td>";
else echo "<td>" . $values[$i] . "</td>";
if ((($i+1) % $entries_per_row) == 0) echo "</tr>"; // close row
}
untested, but should work
sorry for your 2nd quest., I have only basic javascript knowledge