OK. I have written this a bit slappy.
Sorry my mistake.
1.) The display should be like in my last post , thats the same

.
2.) After i have fill in the db with images, in the image64 field you have encoded stuff like this:
R0lGODlhbgBeAOYAAAYGEu7l46WutJyRi0dkeCFBYsLNyIV1cw8bPKWlpf/79tvg1sa4tGB0g0gt .....
for each image.
OK.
3.) The problem:
Im reading the image on this way:
Code: Select all
$img = $_REQUEST["img"];
$result = mysql_query("SELECT * FROM image64 WHERE imgid=" . $img . "");
if (!$result)
{
echo("<b>Error performing query "); exit();
}
while ($row = mysql_fetch_array($result) )
{
$imgid = $row["imgid"];
$encodeddata = $row["image64"];
}
mysql_close($dbclose);
echo base64_decode($encodeddata);
--------------------
And this is the way i read each image :
--------------------
Now, i want to display all those images ( all 100 ) in the table ( like described before ).
So i have to change this
Code: Select all
<table border="1" cellpadding="1" cellspacing="1">
<tr>
<td>Image</td>
<td>Description</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_record_tbNew['image64']; ?></td>
<td><?php echo $row_record_tbNew['desc']; ?></td>
</tr>
<?php } while ($row_record_tbNew = mysql_fetch_assoc($record_tbNew)); ?>
</table>
<div align="center"></div>
<?php
mysql_free_result($record_tbNew);
?>
into what ?.
p.s. i can read all records from db but i have problem with setting the img in this part.
Thnx in advance