Hi all. If I have a a sql statement like "SELECT FROM CUSTOMERS ORDER BY name ASC, address ASC". How can I check whether there is an "ORDER BY" statement and remove that and anything after and just return "SELECT FROM CUSTOMERS "?
stripos() with substr() will probably work, but why must you do this in the first place?