I need to run a function that highlights a searched word on each row that is pulled from the db. I've been trying to use array_walk(), but can't get it to work right.
I've also tried this, but it only hightlights the first row:PHP Code:$row_rsCC = mysql_fetch_array($rsCC);
array_walk($row_rsCC,'str_highlight');
What's going on here? Can you not call array_walk() on a fetched array?PHP Code:$row_rsCC = str_highlight($row_rsCC, $getQuery);
Or is there a better way to do this?





Bookmarks