'".date("Y-m-d")."' AND USEYN='Y' "; $rs=mysqli_query($dbCon,$sql) or die("db error"); $license = mysqli_fetch_array($rs); ///* if(!$license["SIDX"]){ alert_msg('이용가능한 라이센스가 없습니다.\\n 라이센스를 먼저 구매 해 주세요.'); exit; } $sql = "SELECT * FROM $DBTABLE[allowip] WHERE UIDX='".$memVerInfo["UIDX"]."' AND SIDX ='".$license["SIDX"]."' AND IS_STATUS='Y' "; $rs=mysqli_query($dbCon,$sql) or die("db error"); $allow = mysqli_fetch_array($rs); if($allow["ALLOW_IP"]!=$REMOTE_ADDR){ alert_msg('등록된 아이피가 아닙니다. \\n 아이피를 등록 해 주세요.'); exit; } //*/ ############## $p = $_REQUEST["p"]; $SECTORS1 = $_REQUEST["SECTORS1"]; $SECTORS2 = $_REQUEST["SECTORS2"]; $SECTORS3 = $_REQUEST["SECTORS3"]; $SDATE = $_REQUEST["SDATE"]; $EDATE = $_REQUEST["EDATE"]; $BIZTYPE = $_REQUEST["BIZTYPE"]; $SIDO = $_REQUEST["SIDO"]; $SIGUNGU = $_REQUEST["SIGUNGU"]; $KEYWORD = $_REQUEST["KEYWORD"]; $_REQUEST["LIMITDATE"] = date("Ymd"); // 조회일 설정 $PARAM = dbGoEnCrypt(json_encode($_REQUEST)); // DB 건수 $sql = "SELECT * FROM {$DBTABLE['stat']} where statDay='".date("Y-m-d")."' and statType='DAYCNT' "; $sql = "SELECT * FROM {$DBTABLE['stat']} order by TIDX desc limit 1 "; $rs=mysqli_query($dbCon,$sql) or die("db error"); $today = mysqli_fetch_array($rs); // 검색 코드 가져오기 $q_cdde =" select CodeType,Code,CodeDesc from {$DBTABLE["CODE"]} where CodeType in ('LODA_CATE','LODA_GROUP','LODA_CODE' ,'sidoCode','sigunguCode') "; $res_code=mysqli_query($dbCon,$q_cdde) or die("db error ".mysqli_error($dbCon)); while($code = mysqli_fetch_array($res_code)){ ${"ARR_".$code["CodeType"]}[$code["Code"]] = $code["CodeDesc"]; } ?>
오늘 업데이트
0
DB
0

검색정보입력

업종선택, 기간선택, 사업자종류, 지역선택, 키워드, 검색기록으로 구성
업종선택*
기간선택 ~
지역선택 키워드(상호명)*
검색 기록

검색

= '".str_replace(".","",$SDATE)."' "; //if($EDATE)$plusQuery .= " and apvPermYmd <= '".str_replace(".","",$EDATE)."' "; if($SDATE)$plusQuery .= " and writeDate >= STR_TO_DATE('".str_replace(".","-",$SDATE)." 00:00:00' ,'%Y-%m-%d %H:%i:%s') "; if($EDATE)$plusQuery .= " and writeDate <= STR_TO_DATE('".str_replace(".","-",$EDATE)." 23:59:59' ,'%Y-%m-%d %H:%i:%s') "; if($SIDO){ $ARR_ADDR = " '$SIDO' "; $q_sido =" SELECT Code FROM {$DBTABLE['CODE']} where CodeType='sigunguCode' and Comment='$SIDO' "; $rs_sido=mysqli_query($dbCon,$q_sido) or die("db error"); while($sido = mysqli_fetch_array($rs_sido)){ $ARR_ADDR .= " , '".$sido["Code"]."' "; } $plusQuery .= " and opnSfTeamCode in (".$ARR_ADDR.") "; } if($SIGUNGU){ $plusQuery .= " and opnSfTeamCode in ('".$SIGUNGU."') "; } if($KEYWORD)$plusQuery .= " and bplcNm like '%".$KEYWORD."%' "; // 로그 저장 if($plusQuery && $memVerInfo['UIDX']){ $q_log =" insert into {$DBTABLE['search_log']} set "; $q_log.=" UIDX = ".$memVerInfo['UIDX']." "; $q_log.=" ,SECTORS1 = '".$SECTORS1."' "; $q_log.=" ,SECTORS2 = '".$SECTORS2."' "; $q_log.=" ,SECTORS3 = '".$SECTORS3."' "; $q_log.=" ,SDATE = '".$SDATE."' "; $q_log.=" ,EDATE = '".$EDATE."' "; $q_log.=" ,BIZTYPE = '".$BIZTYPE."' "; $q_log.=" ,SIDO = '".$SIDO."' "; $q_log.=" ,SIGUNGU = '".$SIGUNGU."' "; $q_log.=" ,KEYWORD = '".$KEYWORD."' "; $res_log=mysqli_query($dbCon,$q_log) or die("db error1 ".mysqli_error($dbCon)); } $query =" select count(*) as cnt from {$DBTABLE['ALL_LODA']} where 1 $plusQuery "; //echo $query ; $result=mysqli_query($dbCon,$query) or die("db error ". mysqli_error($dbCon)); $row_cnt = mysqli_fetch_array($result); $total = $row_cnt["cnt"]; if(!$license["SIDX"])if($p>5)$p=5; if(!$linesu)$linesu=10; $psu=10; if(!$p) $p=1; $start=($p-1)*$linesu; $end=$start+$linesu; $totp=ceil($total/$linesu); $query =" select A.* "; $query.=" from {$DBTABLE['ALL_LODA']} A where 1 $plusQuery "; //$query.=" order by writeDate desc "; $query.=" limit $start, $linesu"; //echo $query; $result=mysqli_query($dbCon,$query) or die("db error ".mysqli_error($dbCon)); $n = mysqli_num_rows($result); ?>

검색결과 총 0건 이 조건 디비 자동 메일 전송 등록 CSV 다운로드 CSV 다운로드 이 조건 디비 자동 메일 전송 등록 CSV 다운로드

fetch_array(MYSQLI_ASSOC)){ if($MODE <= 2)$onClick1 = "onClick=\"location.href='inquire_view.html?MODE=$MODE&BIDX={$row['BIDX']}'\""; $onClick2 = "onClick=\"boardEdit({$row['BIDX']})\""; if($row["RECNT"] > 0)$recnt ="답변완료"; else $recnt="답변대기"; if($row["DIFFDAY"] < 7)$newimg =""; else $newimg=""; $row["WDATE"] = substr($row["WDATE"],0,16); if(substr($row["siteTel"],0,1)=="-")$row["siteTel"] = substr($row["siteTel"],1); if(!$license["SIDX"]){ $row["rdnWhlAddr"] = substr($row["rdnWhlAddr"],0,strpos($row["rdnWhlAddr"]," "))." ****** ****"; $row["siteTel"] = substr($row["siteTel"],0,strpos($row["siteTel"],"-"))." *******"; } echo" "; $j--; } } ?>
상호명, 업종(대), 업종(중), 업종(소), 우편번호, 주소, 전화번호, 사업자신고일, 영업상태, 데이터갱신일로 구성
상호명 업종(대) 업종(중) 업종(소) 우편번호 주소 전화번호 사업자신고일 영업상태 데이터갱신일
".$row["bplcNm"]." ".$ARR_LODA_CATE[substr($row["opnSvcId"],0,2)]." ".$ARR_LODA_GROUP[substr($row["opnSvcId"],3,2)]." ".$ARR_LODA_CODE[$row["opnSvcId"]]." ".$row["rdnPosNo"]." ".$row["rdnWhlAddr"]." ".add_hyphen($row["siteTel"])." ".date("Y-m-d", strtotime($row["apvPermYmd"]))." ".$row["dtlStateNm"]." ".substr($row["updateDt"],0,10)."