如何制作横版的学生证?
此代码以垂直形状显示身份证,我想要水平形状。我该如何解决这个问题?请帮我解决这个问题。
我想要这样:
----------------------------------
| Photo | Student Detail |
----------------------------------
here |Student Name : |
|Roll No: |
photo |Classs : |
|Grn : |
|Father Name : |
----------------------------------
现在它的显示如下:
--------------------------------------------------------
Photo | Student Detail |
--------------------------------------------------------
here |
|
photo |
|
|
--------------------------------------------------------
Student Name: |
Roll No: |
Class: |
Grn: |
Father Name: |
--------------------------------------------------------
代码:
echo "<table class='hovertable' border='1' cellpadding='0' cellspacing='0'>";
echo "<tr><th>Photo</th><th>Student Detail</th></tr>";
if ($rows > 0) {
while($row = mysql_fetch_array($result)) {
echo "<tr><td>";
echo "<img src=http://localhost/student/images/".$row['photo'] ." width='150' height='100'></a></td>";
echo "<tr><tr><td>";
echo $row['name'];
echo "</tr></td>";
echo "<tr><td>";
echo $row['rollno'];
echo "</tr></td>";
echo "<td>";
echo $row['fathername'];
echo "</tr></td>";
echo "<td>";
echo $row['class'];
echo "</td></tr>";
}
} else {
echo "<tr><td colspan=\"5\">No results found!</td></tr>";
}
echo "</table>";