Bare naked code removed. Please don’t open up 4 year old threads and drop code into a post without any explanation of why or what you’re needing help with.
hi thanks @shanebp i am really biggner for my self i did what you said but matter is when i tried but never got result kindly check my code tell me i already spend 4 days.
<?php
global $wpdb, $bp;
$result = $wpdb->get_results(“SELECT user_id FROM wp_bp_xprofile_data WHERE value = ‘$_POST[language]’ OR value = ‘$_POST[budget]’ OR value = ‘$_POST[style]’LIMIT 0 , 30”);
print_r($result);
$result = array();
//$values = maybe_unserialize($result);
//echo var_dump( maybe_unserialize( $result ) );
//$values = $result;
//$value = bp_unserialize_profile_user_id( $values );
//$values = implode( “, “, $value);
//echo $values;
//print_r($values);
//so you have to ‘manually’ unserialize them
foreach($result as $user_id=>%d)
{
echo “Key=” . $user_id . “, Value=” . %d;
echo “<br>”;
}
//$values_str = implode( ‘,’, $getty );
//print_r($values_str);