KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/yuchun/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/yuchun/admin/test_coupon.php
<?include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
$todayfull = date("YmdHis");
$contents = addslashes($contents); //특수문자db에 들어가게..
$reply_content = addslashes($reply_content); //특수문자db에 들어가게..

$query="select id from user where auth_code=10 and activated=1 order by id asc";
echo $total = Get_db("select count(id) from user where auth_code=10 and activated=1");
$result= mysql_query($query,$db_con);
//20160706 1417명 입력함.
//$i = 1418로 시작해야함.
for($i=1; $i<=$total; $i++) {
	$row = mysql_fetch_array($result);
	$couponNum = Get_db("select coupon from user_coupon where idx='".$i."'");
	$queryupok = "update user set coupon='$couponNum' where id = '$row[id]'";
	//mysql_query($queryupok,$db_con);
	$qry = "update user_coupon set chk='Y' where idx = '$i'";
	mysql_query($qry,$db_con);
	echo("$i .$queryupok <Br/>");

}

echo("END");


?>

Anon7 - 2021