This is how the data is pulled and echoed in the URL:
[code=php]
<? echo $sole[‘newlist’]?>
$sole[‘newlist’] is stored in the database as text, like this: name1,name2,name3,name4 (no spaces)
What I want to do is to remove $sender from the echoed $sole[‘newlist’] IF it’s there.
NOTE: the name can appear in the beginning of the list:
[b]jack
and it can appear in the middle or in the end of the list
jess[b],jack
So if we want to remove jack ($sender] from the echoed $sole[‘newlist’] we would also have to remove the comma that is in front of the name because otherwise it would bug up the system.
Probably have got to do something with array_search, is_array but I couldn’t do anything to solve it…
Any ideas?