BUY0000.php 1.05 KB
<?PHP 
//*****************************************************************************
//* 
//* プログラム名:め〜るNiポン!V2
//* プログラムID:BUY0000.php
//* 機能        :ポイントの必要項目入力
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

//***************************
//* インクルードファイル
//***************************
include('./include/smarty.conf');
include("./include/session_start.inc");
include("./include/SessionChk2.inc");
include("./include/jcode.phps");

//********** ヘッダー処理 **********//
include("./include/headr_data.inc");

//********** 接続処理 **********//
include("./include/dbcon2.inc");

$strSQL = "SELECT * FROM point_buy_history_tbl WHERE user_id = '".$PHP_POST_SYAIN_ID."' and flg = 1";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
		echo("SQL実行に失敗しました(INSERT)");
		exit;
}
if (pg_numrows($objRecSet)>0){
		$buy_flg = 1;
}else{
		$buy_flg = 0;
}

$o_smarty->assign('buy_flg' , $buy_flg);

$o_smarty->display('BUY0000.tpl');

?>