PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if ($row_profile_count > 0) {
$sql = mysql_query("select * from friends where userid='".$_SESSION['session_id']."'");
i know it should be a foreach statement i think
}
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='1'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='2'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='3'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='4'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='5'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='6'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='7'
UPDATE friends SET new='1' WHERE userid='USER_ID' AND friendid='8'
its going to need to go through a series depending how many are in the database, i know it should be a foreach