0){ die('您已开通此服务! 我的服务中查看'); } //////// $resultz = mysql_query("SELECT * FROM userlist WHERE userphone='$_COOKIE[tel]'"); if($row = mysql_fetch_array($resultz)) { $xlb = $row[xlb]; } $jg = "1"; if($xlb<$jg) { die("[迅辽网络温馨提示]
开通该服务,所需金额¥:".$jg." 元。
您账号余额不足!

立即冲值
"); } else{ //扣除余额 $xlbs =$xlb-$jg; mysql_query("update userlist set xlb = '$xlbs' where userphone='$_COOKIE[tel]'"); //消费记录 $title = "视频会议"; mysql_query("INSERT INTO qdjl(username,title,je,time) VALUES ('$_COOKIE[tel]','$title','$jg','$time')"); //添加服务 mysql_query("INSERT INTO xlfw(username,title,type,time) VALUES ('$username','视频会议','shipinhuiyi','$time')"); } header("Location:/service/shipinhuiyi/user_center_index.php"); ?>