PHP Beginners write in time to recharge the Skype user charging small program _php tips

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

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.