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 | |
global $wpdb; | |
// @ prefix used to suppress errors, but you should do your own | |
// error checking by checking return values from each mysql_query() | |
// Start Transaction | |
@mysql_query("BEGIN", $wpdb->dbh); | |
// Do some expensive/related queries here |