我无法将行值的值输出到 html 内容有关如何执行此操作的任何建议?我尝试使用不同的方法,以便我将在页面上打印,但它总是空白有什么办法吗?
<?php
//connect
$dbh=mysql_connect ("localhost", "xxxx_admin", "xxxx")
or die ('I cannot connect to the database.');
mysql_select_db ("xxxx_Client");
$term = $_POST['term'];
echo $term;
$sql = mysql_query("select * from ClientTable where FName like '$term'");
if ($row['FName'] == $term){
$ID = $row['ID'];
$FName = $row['FName'];
$LName = $row['LName'];
$PHON = $row['PHON'];
}
else
echo "invalid input";
?>
<html>
<head>
<title></title>
</head>
<body>
asdadasdad<br>
<?php echo $FName; ?><br>a<br>
<?php echo $_POST["$LName"]; ?><br>a<br>
$FName <br>
$LName <br>
$ID <br>
$PHON <br>
sadasdasda
</bod>
</html>