PHP Beginners to write the timely replenishment of Skype users charge the small program

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.