其实加在一起有几十个,但因为需要操作的数据比较多,就在后面加了一段小程序来解决.可以处理昨天没有处理到的数据,具体如下:
$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)';
//取出昨天没有充上话费的用户
$result = mysql_query($sql, $handle);
if(! $result)
dlog("Info",$sql ); //后台打印
while($row = mysql_fetch_row($result))
{
$skype_id = $row[0];
$product_id = number;
charge_skype(gen_order_id(), $skype_id, $product_id);//调用充值函数
}
先写这么多,明天再继续写,在这一段时间里非常感谢我的leader(colin)一直对我的知道和帮助.我知道自己有很多缺点,但会很快改正,对前段时间给你添了那么多麻烦说声sorry,还望见谅.请你相信我一直在进步.因为初学php,欢迎各位大虾批评和指导.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn