교가제작 50% 할인

코로나-19 방역기간 동안 교가제작 비용을 50% 할인합니다.

VIEW MORE

23년의 노하우

23년의 노하우를 공유하십시오!

차별화된 콘텐츠!

나만의 개성 있는 콘텐츠를 활용하십시오!

<?
##### 리스트로 불러오기.
$query = "SELECT * FROM table_nm where field_a like '%2013%'";
$result = mysql_query($query);
if(!$result){error("QUERY_ERROR");exit;}

$record_num = 1;
while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
##### 각 게시물 레코드의 필드값을 변수에 저장한다.
$my_field1 = $row[field_1];
$my_field2 = $row[field_2];

$record_num++;
}
?>

<?
##### 필요한 정보만 불러오기.
$query_y = "SELECT ZIP_CD1,ZIP_CD2,ADDR1,ADDR2 FROM table_nm where REG_NUM1 = '$my_regnum1' and REG_NUM2 = '$my_regnum2'";
$result_y = mysql_query($query_y);
if(!$result_y){error("QUERY_ERROR");exit;}
$row_y = mysql_fetch_array($result_y,MYSQL_ASSOC);

$my_zip1 = $row_y[ZIP_CD1];
$my_zip2 = $row_y[ZIP_CD2];
$my_addr1 = $row_y[ADDR1];
$my_addr2 = $row_y[ADDR2];
mysql_free_result($result_y);
?>

<?
##### 값 하나만 알아내기.
$query = "SELECT count(*) FROM table_name where state_cd = '10'";
$result = mysql_query($query);
if(!$result){error("QUERY_ERROR");exit;}

$total_record = mysql_result($result,0,0);
mysql_free_result($result);
?>

<?
##### 게시물을 수정하는 경우
$query = "SELECT category,title,comment FROM table_name WHERE uid = $number";
$result = mysql_query($query);
if(!$result){error("QUERY_ERROR");exit;}
$row = mysql_fetch_row($result);

$my_category = $row[0];
$my_title = $row[1];
$my_comment = $row[2];
?>

21 Windows 윈도10 껐는데도 저절로 다시 켜지는 경우
20 Php 텍스트 값 분리(explode)
19 Php 변수에 특정 문자열이 포함된 경우 처리
18 Php 자릿수
17 Web 유튜브(YouTube) 동영상을 반응형으로 삽입하기
16 Etc [Musescore] 사용 팁
15 Html/Java 입력값이 숫자인지 확인
14 Php 숫자 앞의 0 떼어내기
13 Php 어떤 수로 나누어 떨어지는 경우
12 Html/Java 확인 대화창 띄우기
11 Server centos5에서 부팅방법 결정
10 Etc Visual Studio 단축기(shortcut)
9 Html/Java 창 크기 강제 조정
8 Windows 윈도10 시작프로그램 등록
7 Mysql 패스워드 변경시키기
6 Mysql 여러 필드들의 평균 내기
5 Windows 윈도의 유용한 단축키
4 Windows 자신의 네트워크 정보 보기
3 Web xe 설치하기
2 Server 리눅스 배포판 확인

LOGIN

SEARCH

MENU NAVIGATION