Skip to content

Instantly share code, notes, and snippets.

@DracoBlue
Created February 2, 2010 21:56
Show Gist options
  • 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