echo $begrüßung;
Catchable fatal error: Object of class stdClass could not be converted to string [...] on line 23
while($row = mysql_fetch_object($searche))
foreach($allerows as $rows)
23 if(ereg($row->$row,$sw))
Die Fehlermeldung ist berechtigt. Ein $object->$object ist auch nicht sehr sinnvoll. Deinem zweiten $row fehlt wohl ein s.
echo "$verabschiedung $name";