"Y"){ $display = "N"; } $sql1 = "update users set meet_people = '$display' where ID='" . $_SESSION["sessionUserID"] . "'"; $result = mysql_query($sql1) or die(mysql_error()); $SQL = "select privacy.*,users.ID,users.First_Name, users.Last_Name from privacy,users where (privacy.deleted = 0) AND ((privacy.friend_id = users.ID) and user_id = '" . $_SESSION["sessionUserID"] . "')"; $result = mysql_query($SQL) or die(mysql_error()); while($myrow=MySQL_fetch_array($result)){ $friend_id = $myrow["friend_id"] ; $grocery = $myrow["grocery"] ; if($photo_checked[$friend_id] > " "){$friend_photo = "Y" ;} else {$friend_photo = "N" ;} if($contact_checked[$friend_id] > " "){$friend_contact = "Y" ;} else {$friend_contact = "N" ;} if($blog_checked[$friend_id] > " "){$friend_blog = "Y" ;} else {$friend_blog = "N" ;} if($cook_checked[$friend_id] > " "){$friend_cook = "Y" ;} else {$friend_cook = "N" ;} if($ToDo_checked[$friend_id] > " "){$friend_ToDo = "Y" ;} else {$friend_ToDo = "N" ;} if($Profile_checked[$friend_id] > " "){$friend_Profile = "Y" ;} else {$friend_Profile = "N" ;} if($grocery_checked[$friend_id] > " " && $grocery == "Y"){$friend_grocery = "Y" ;} if($grocery_checked[$friend_id] > " " && $grocery == "W"){$friend_grocery = "W" ;} if($grocery_checked[$friend_id] > " " && $grocery != "W" && $grocery != "Y"){$friend_grocery = "W" ;} if($grocery_checked[$friend_id] < " " && $grocery == "W"){$friend_grocery = "N" ;} if($grocery_checked[$friend_id] < " "){$friend_grocery = "N" ;} $SQL = "UPDATE privacy SET show_profile_page = '$friend_Profile', photo = '$friend_photo',blog = '$friend_blog' ,cookbook = '$friend_cook' , contacts = '$friend_contact' ,grocery = '$friend_grocery' WHERE friend_id ='$friend_id' and user_id = '" . $_SESSION["sessionUserID"]. "'"; $result1 = mysql_query($SQL); /*, ToDo = '$friend_ToDo'*/ if(($grocery_checked[$friend_id] < " " && $grocery == "Y") || ($grocery_checked[$friend_id] < " " && $grocery == "W")){ $SQL2 = "UPDATE privacy SET grocery = 'N' WHERE user_id ='$friend_id' and friend_id = '" . $_SESSION["sessionUserID"]. "'"; $result1 = mysql_query($SQL2) or die(mysql_error()); $message ="I just removed you from my Grocery List." ; $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $msgTitle = "YadaHome Network" ; $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text,msg_title)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$friend_id','$dateSent','$timeSent','N','$message','$msgTitle')" ; $result2 = mysql_query($sqlInsert) or die(mysql_error()); $replyID = mysql_insert_id() ; $sqlupdate = "Update messages Set Reply_ID='$replyID' where ID='$replyID'"; $result2 = mysql_query($sqlupdate) or die(mysql_error()); } if($friend_grocery == "W" && $grocery != "W"){ $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$friend_id','$dateSent','$timeSent','N','001')" ; $result2 = mysql_query($sqlInsert) or die(mysql_error()); $lastInsert=mysql_insert_id() ; $msgTitle = "YadaHome Network" ; $message ="I would like to share my Grocery List with you. Please click here to accept or reject this invitation." ; $SQL3 = "UPDATE messages SET msg_title = '$msgTitle', Reply_ID='$lastInsert', The_Text = '$message' WHERE To_ID ='$friend_id' and ID = '$lastInsert' and The_Text='001' and From_ID = '" . $_SESSION["sessionUserID"]. "'"; $result2 = mysql_query($SQL3) or die(mysql_error()); $SQL = "UPDATE privacy SET grocery = 'W' WHERE user_id ='$friend_id' and friend_id= '" . $_SESSION["sessionUserID"]. "'"; $result2 = mysql_query($SQL) or die(mysql_error()); } $msg = "y" ; } } else { $SelectStr = "SELECT meet_people from users where ID='" . $_SESSION["sessionUserID"] . "'"; $result = mysql_query($SelectStr)or die(mysql_error()); if($myrowM=mysql_fetch_array($result)){ $meet_people = $myrowM["meet_people"] ; } } ?> Yada Home | Sharing Center
yada home
my fridge
   
   
Need a petsitter? We've got hundreds of thousands!
My Privacy Settings   My Family    
My privacy settings
By selecting the users in the network below, they are able to see your content for the specified area.
" "){?> Your settings have been updated.

My Profile
Please select the users in your network that can view your profile. This includes your contact info, personal info, biography, my friends, my groups, about me and yada yada board.
/>
 
My Photos
Please select the users in your network that you would like to view your photos.
/>
 
My Journal
Please select the users in your network that you would like to view your journal.
/>
 
My Cookbook
Please select the users in your network that you would like to view your recipes.
/>
 
My Contacts
Please select the users in your network that you would like to view your contacts.
/>
 
Grocery List
By sharing a grocery list with another user, both your list and the user's grocery list combine.
onclick="return confirmSelect(this);" /> Waiting Confirmation !
 
To do List
You can only share your to do list with YadaHome Turbo.
 
My Calendar You can share events from your calndar with others in your network.
Choose specific people you would like to share an event with, or select "Make this event public" to show the event on your public network calendar.
   
   
 


Peapod

   

free profile