testing to see if the object is empty
This commit is contained in:
1 parent
0de96b0d88
commit
b0c8b9debf
1 file changed
+1
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user