// Get the people current user is buzzing
$buzzedArr = array();
for( $y=0; $y < $numRecs; $y++ ) {
$getBuzzRow = mysql_fetch_array($getUsernames);
if( preg_match( "/$userInfo[id_sbuser]/i", $getBuzzRow[buzz] ) ) {
$buzzedArr[$y] = $getBuzzRow[user_name];
}
} // END for loop for getting buzzed users
I am trying to set an array with usernames as each element. The snipet should search the resultset for the current users id number in a field. If the id is found set the coinciding username in this array. The array is not being set but it is finding the id number.....
Any ideas or suggestions????