Quote:
Originally Posted by braca86
what if i get pictures from a mysql database and the code is:
<?php do { ?>
<img src="pictures/<?php echo $row_recordset1['pic']; ?>" alt="" width="160" height="175" align="middle" />
<?php } while ($row_pictures= mysql_fetch_assoc($pictures)); ?>
where to put the code for resizing????
|
Well, first of all, $row_pictures and $row_recordset1 don't match.
So I doubt that you will get any output from $row_recordset1['pic'].
But just for the sake of argument,
let's say you have a table in your database called "pictures".
And in the "pictures" table you have a column called "pic".
And also in the "pictures" table you have a few records that has an image file name in the column "pic".
Then this script would do what you want.
And this may be a little cleaner.
If you click on an image, the large image will be displayed.
And when you click on the large image it disappears.