Created
February 2, 2010 21:56
-
-
Save DracoBlue/293086 to your computer and use it in GitHub Desktop.
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
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