This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A quick little function to interact with a MySQL database. | |
* | |
* 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 | |
* | |
* @param string $sql the sql statement you want to execute |