弄错了一个,还是补起来吧!
chaxun.php:
<form name="form1" method="post" action="chaxun.php">
<table width="200" border="0">
<tr>
<th scope="row"> ²éѯ </th>
<td><input type="text" name="ID"></td>
</tr>
</table>
</form>
<hr size="1">
<?
include("../db.func");
if (!empty($ID)) {
$rows = GetRows( "pcadmin", "Select * From Profile where ID='$ID'" );
if ( $row = mysql_fetch_row($rows) ) {
echo "<table border=1 bordercolordark='#ffffff' bordercolorlight='#000000' cellpadding='3' cellspacing='0'>";
echo "<TR>";
for ( $K=0 ; $K < count($row); $K++ ) {
echo "<TD Align=Right>" . $row[$K] . "</TD>";
}
echo "<td valign=center Align=right>";
echo "<a href=printf.php?ID=$ID>";
echo "Update";
echo "</a>";
echo "</td>";
echo "<td>";
echo "<a href=delete.php?ID=$ID>";
echo "Delete";
echo "</a>";
echo "</td>";
echo "</TR>";
echo "</TABLE>";
}
}
?>