Skip to content

Instantly share code, notes, and snippets.

@DracoBlue
Created February 2, 2010 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DracoBlue/293086 to your computer and use it in GitHub Desktop.
Save DracoBlue/293086 to your computer and use it in GitHub Desktop.
function a(b, c, callback) {
mysql_query("insert into magic_table pseudocode query (...)", function(status, data) {
if (status) {
callback(false, "Cannot add item!");
return ;
}
// do custom code
callback(true);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment