How to put there size, I want to display edge image in 400X400 format:
- height = 400
- width = 400
Please give the code size in 400X400, thanks.
Here is the code:
<?php
// Grab the data from our people table
$sql = "select * from njerz";
$result = mysql_query($sql) or die ("Could not access DB: " . mysql_error());
while ($row = mysql_fetch_assoc($result)) {
echo "<div class=\"picture\">";
echo "<p>";
// Note that we are building our src string using the filename from the database
echo $row['fname'] . " " . $row['lname'] . "<br />";
echo "<img src=\"images/" . $row['filename'] . "\" alt=\"\" /><br ;
echo "</p>";
echo "</div>";
}
?>