如何放置尺寸,我想以 400X400 格式显示边缘图像:
- 高度 = 400
- 宽度 = 400
请给出400X400的代码大小,谢谢。
这是代码:
<?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>";
}
?>