Thanks for your concern.
the error for the addfriends.php says "[B][COLOR="Red"]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1",[/COLOR][/B]
while error for the request.php says [COLOR="Green"][B]"Unknown column 'userID' in 'where clause'"[/B][/COLOR].
I am kinda confused cus I have spent time trying to fix it but error still occur. can u offer me some help looking at my code plz.