Update findFriend.php

This commit is contained in:
Logan McInnis
2019-12-04 18:20:49 -05:00
parent dbcc3761ef
commit 44a50b12e8

View File

@@ -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){