I wanna to display them out in php through a web browser.
this is part of code (in php):
---after connect to database ,
Expand|Select|Wrap|Line Numbers
- $dbQuery=" select name, png1, png2 from png";
- $result=mysql_query($dbQuery) or die("Could not get file list");
- // to display
- while($row=mysql_fetch_array($result))
- {
- ?>
- <tr>
- ..............
- <td><?php echo $row["phg1"]; ?></td>
- ...........
- </tr>
- }
sure,,, it does not work, and I tried this way :
firstly , download .png files out from mysql to a local directory,
then display it using :
------------------------------------------------------
Expand|Select|Wrap|Line Numbers
- $imagepath="/home/......1.png";
- $image=imagecreatefromjpeg($imagepath);
- header('Content-Type: image/png');
- imagejpeg($image);
this does not work either.
anyone has good ideas about it ? please help . Thanks a million.
Tanya