Jump to content

[help] how to insert a script delete aotomatis in order


Recommended Posts

please how to delete an order automatically insert the tab order,, I suppose that by the subscriber from the payment threshold, then the delete this script.,, sequel how your friends .. please

<?php

if (!mysql_connect("localhost","root","")){

echo "error";

die();

}

//$a=date('Y-m-d H:m:s');//

$a=time();

mysql_select_db("anekasutra_db");

$result=mysql_query("SELECT * FROM ps_orders");

$i=0;

while ($row=mysql_fetch_array($result)) {

$e=strtotime($row['date_add']);

$c=$row['id_order'];

$b=$e+432000;

if ($a > $ B) {

$query = mysql_query ("DELETE FROM `anekasutra_db`.`ps_orders` WHERE `ps_orders`.`id_order`='$c'");

echo "yes";

} else {

echo "error";

}

 

$i++;

}

 

?>

tutorial please send to [email protected]

Link to comment
Share on other sites

×
×
  • Create New...