In php I am using the eregi function for a search script to see if the input matches with a database row. The problem is I can only get one result to be displayed. I think its because I am using mysql_fetch_object() but then thats the only one that will get results that will work in eregi. If I try mysql_fetch_array() in eregi then I get an error. Is there a thing I can do with backslashes or something to get the mysql_fetch_array() working in eregi? Just to it easier here's what I do with mysql_fetch_object()
And here is what I try to do with mysql_fetch_array but it won't work:
PHP:
eregi($searchtext, $row->Name);
PHP:
eregi($searchtext, $row[Name]);