Update findFriend.php
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
try{
|
try{
|
||||||
echo '<pre>';
|
echo '<pre>';
|
||||||
echo "Find Friends:\n\n";
|
echo "Find Friends:\n\n";
|
||||||
|
if($_POST['friend'] != '')
|
||||||
|
{
|
||||||
$sql_select = "SELECT username";
|
$sql_select = "SELECT username";
|
||||||
$sql_from = "FROM contacts";
|
$sql_from = "FROM contacts";
|
||||||
$sql_where = "WHERE username = '".$_POST['friend']."'";
|
$sql_where = "WHERE username = '".$_POST['friend']."'";
|
||||||
@@ -54,6 +56,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
echo '</pre>';
|
echo '</pre>';
|
||||||
}catch(PDOException $e){
|
}catch(PDOException $e){
|
||||||
|
|||||||
Reference in New Issue
Block a user