testing to see if the object is empty
This commit is contained in:
@@ -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