I cant output the values of the row value to the html content any suggestions on how to do that? i tried using different methods so that i will print on the page but it's always blank is there any way to do it?
<?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>
$row?$row = mysql_result($sql,0);call Incidentally, you should also use the mysqli_* functions as the mysql_* flavor are deprecated.