Original Post
I would like to start out by saying that I love SQL. I do wonder though, is it a bad way to handle data? Every query used first has to compile a string, then that same string has to be broken apart again. Wouldn't a class based solution be better, if not easier? Talking about something like this: mySQLQuery.setAction(MYSQL_SELECT); mySQLQuery.setField("age"); mySQLQuery.setCritera(MYSQL_GTE, 18); mySQLQuery.setOrderField("age"); mySQLQuery.setOrder(MYSQL_ASSENDING); result = mySQLQuery.run(); Also, this way there wouldn't be near as much syntax worries, just a couple checks to make sure everything way set and within range, a check to make sure age was a field, ect.