foreach ($_REQUEST as $key => $value){ $$key = $value; } Define( "_vStrRootPath" , "../../" ); Include( _vStrRootPath . "_tarad/_libraries/config_global.php" ); Include( _vStrRootPath . "_tarad/_libraries/constant.php" ); Include( _vStrRootPath . _vStrDirPrefix . "/" . _vStrDirGlobal . "/global.php" ); Include( _vStrRootPath . _vStrDirPrefix . "/" . _vStrDirGlobal . "/tarad.php" ); Include( _vStrRootPath . _vStrDirPrefix . "/" . _vStrDirGlobal . "/_check_language.php" ); $Conn = MySQL_Connect( _MySQLServer , _MySQLUser , _MySQLPass ) Or Die ( _MySQLDieConn . MySQL_Error() ); MySQL_Select_Db( _MySQLDb , $Conn ) Or Die ( _MySQLDieDb . MySQL_Error() ); mysql_query("SET NAMES 'tis620'"); ?> /*if($error==1) echo "ร้านค้าดังกล่าวไม่ได้เปิดใช้โพล";*/ if($show==1) { //include("connect.php"); $sql="select * from shop_poll where spf_id_pk=$mem_id AND poll_status=1"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $num=mysql_num_rows($result); if($num==0) { echo"
หัวข้อแบบสอบถามออนไลน์
=$polltopic ?>
|
|||||
=$row1['poll_ans_topic'];?> |
if($hits==0){ ?>
|
if(!isset($percent))
$percent=0;
echo round($percent,2);?>
% |
|||
จำนวนผู้ร่วมโหวต
=$numofvoter ?> คน
|