A quick little function to interact with a MySQL database (updated version to use MySQLi)

When working with Limonade-php a full-fledged MySQL wrapper seems like overkill. This method instead accepts any mysql statement and if it works returns either the result or the number of rows affected. If neither worked, then it returns false.