Actually add together there are dozens of, but because the need to operate more data, in the back of a small program to solve. You can handle data that was not processed yesterday, as follows:
Copy 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) ';
Take out the user who didn't charge the phone yesterday
$result = mysql_query ($sql, $handle);
if (! $result)
Dlog ("Info", $sql); Print Spooler
while ($row = Mysql_fetch_row ($result))
{
$skype _id = $row [0];
$product _id = number;
Charge_skype (gen_order_id (), $skype _id, $product _id);/Call recharge function
}
Write so much first, and then continue to write tomorrow, in this period of time I am very grateful to my leader (Colin) has been to my knowledge and help. I know I have many shortcomings, but will soon correct, to give you so much trouble in the last time to say sorry, I hope you will forgive me. Please believe that I have been improving. Because of the beginner PHP, you are welcome to criticize and guide prawns.