function updatefriendrequest() {
$sql_friend = 'select * from friend_notifications where uid="' .$_SESSION['info']['auto_id'].'" AND fr="1"';
$result_friend = executeQuery($sql_friend);
if (mysql_num_rows($result_friend) > 0) {
$sql_friendupdate = 'update friend_notifications set fr="0" where uid=' .$_SESSION['info']['auto_id'];
executeQuery($sql_friendupdate);
}
}
I cannot get this to work does anything look wrong, it does not show any errors but will not update a table