Skip to content

Instantly share code, notes, and snippets.

View nickelnext's full-sized avatar

Roberto Mangano nickelnext

  • Lugano, CH
View GitHub Profile
@AngeloR
AngeloR / lemon_mysql.php
Created April 14, 2011 15:20
Simple mysql wrapper for lemonade-php
<?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