Location: PHPKode > scripts > e-cart Free Shopping Cart Software Script Web Store > e-cart-free-shopping-cart-software-script-web-store/reset.php
<?php
//OS Commerce Counter Reset v0.15
//Author: Ben Allen
//Email: hide@address.com
//Site: http://www.ballen.bytehost.com
//
//Based On Original Contribution By
// OS Commerce Counter reset
// Author: Richard Nero
// Email: hide@address.com
// Site: http://www.rlnero.com

include('includes/application_top.php');



// Make query and execute it
$query = "UPDATE counter SET counter = 0";
$today = date("Ymd");
$date = "UPDATE counter SET startdate = $today"; 
$counterquery = mysql_query($query);
$datequery = mysql_query($date);
echo "<font face=arial size=3><b>Reset Successful!<p>Your hit counter is now reset to zero.&nbsp;  Please use your browser's back button to return.";
 

require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
Return current item: e-cart Free Shopping Cart Software Script Web Store