I have this code in PHP:
$sql = mysql_query("select * from peoplebase where FName like '%$fname%' AND MName like '%$mname%' AND LName like '%$lname%' AND street like '%$street%' AND city like '%$city%' AND state like '%$state%' and zip like '%$zip%' and ssn like '%$ssn%'");
while ($row = mysql_fetch_array($sql)){
echo "<div style='text-align:center'><h3>Results:</h3></div>";
echo "<div style='text-align:center'><p>First Name: ".$row['FName']."</p></div>";
echo "<div style='text-align:center'><p>Middle Name: ".$row['MName']."</p></div>";
echo "<div style='text-align:center'><p>Last Name: ".$row['LName']."</p></div>";
echo "<div style='text-align:center'><p>Street: ".$row['Street']."</p></div>";
echo "<div style='text-align:center'><p>City: ".$row['City']."</p></div>";
echo "<div style='text-align:center'><p>State: ".$row['State']."</p></div>";
echo "<div style='text-align:center'><p>Zip: ".$row['Zip']."</p></div>";
echo "<div style='text-align:center'><p>SSN: ".$row['SSN']."</p></div>";
}
and I want to show these all echos in HTML in a table, Please help me fast.
Thanx, in advance