testing to see if the object is empty

This commit is contained in:
Bryan
2019-12-04 19:20:24 -05:00
parent 0de96b0d88
commit b0c8b9debf

View File

@@ -21,6 +21,7 @@ echo "<br>";
$query = "Select * from contacts where username = '".$_POST["username"]."'";
foreach($db_connection->query($query) as $row){
print(empty($row)."\n");
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
}