Menu
Hi the below code works except I want I’m having a hard time setting the value for “relation”. the value of $value is returning family[100]. I only want the word ‘family’ and drop the key value.
any ideas how to do this
[code]
$except_request = $_POST[‘relationship’];
if(isset($_POST[‘except_request’])){
if(is_array($except_request)) {
foreach($except_request as $key=>$value){
mysql_query (“UPDATE buddylink SET relation =’$value’, status=’2′ WHERE buddylink_id = ‘$key'”)or die(“SQL Error:” . mysql_error());
}