Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $update_code = strtotime(date("Y-m-d H:i:s"));
- # import code is somewhere in here
- // Remove inactive 911 Calls
- $prunesql = "SELECT * FROM active_911_calls";
- $pruneresult = mysql_query( $prunesql );
- while ( $prunerows = mysql_fetch_array( $pruneresult ) ) {
- $upcode = (int)$prunerows[ 'update_num' ];
- if ( $upcode != $update_code ) {
- //SQL( "INSERT INTO archive_911_calls SELECT * FROM active_911_calls WHERE GUID='" . $prunerows[ 'GUID' ] . "'" );
- SQL( "DELETE FROM active_911_calls WHERE GUID='" . $prunerows[ 'GUID' ] . "'");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement