lol... just cuz it's funny... anyone else notice the link that he posted is this:
I don't know what you're searching, but stay away from me!!
J/k.
It seems you're using the class wrong. Would you want to use something like:
$search = new search();
$search->search($searchFor, $searchType); // this will do an automatic print
$results = $search->search($searchFor, $searchType); // this will put them in variable if return is used
here's things I see:
-- Nothing is returned, it's all outputted directly
-- You have 2 functions that are the same, and they fire automatically when the class is called
What you need to do is in the areas of OutputAlternatingRows() you need to RETURN the results, not just echo. If youecho, they'll be output, if you return, they'll go in to the $mySearch variable.
Hope that helps.
~Brett