Actually add together there are dozens of, but because the need to manipulate the data more, in the back with a small program to solve. You can handle data that was not processed yesterday, as follows:
Copy the Code code as follows:
$handle = mysql_connect ("host", "User", "password");
if (! $handle | | |! ( mysql_select_db ("DatabaseName", $handle)))
Exit ();
$sql = ' Select skype_id from skype_prize where prize_id = * and sn = "and to_days (update_time) = To_days (now ()-1) ';
Remove the user who didn't charge the phone yesterday
$result = mysql_query ($sql, $handle);
if (! $result)
Dlog ("Info", $sql); Background Printing
while ($row = Mysql_fetch_row ($result))
{
$skype _id = $row [0];
$product _id = number;
Charge_skype (gen_order_id (), $skype _id, $product _id);//Call the Recharge function
}
Write so much first, and write again tomorrow, and in this period of time thank my leader for my knowledge and help. I know I have a lot of shortcomings, but will soon correct, on the previous period of time to add so much trouble to say sorry, I hope you will forgive me. Please believe that I have been progressing. Because of beginners PHP, you are welcome to criticize and guide prawns.
The above describes the PHP beginner to write a timely replenishment of Skype users charge the small program, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.