내일은 대한입니다.
sun's longitude:299 22 17.03 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
2052 번 글: php-count 질문좀...
글쓴이: 김성민 글쓴날: 2004년 05월 07일 23:23:22 금(저녁) 조회: 841
안녕하세요.

안된다고들 하는데 혹시나 방법이 있는가 궁금해서요.

$process1=mysql_fetch_array(mysql_query("select count(id) from orderinfo where
ordertime <= '$tommorow' and ordertime >= '$today' and process='0' and
dbstatus='1'"));

$process2=mysql_fetch_array(mysql_query("select count(id) from orderinfo where
ordertime <= '$tommorow' and ordertime >= '$today' and process='1' and
dbstatus='1'"));									
$process3=mysql_fetch_array(mysql_query("select count(id) from orderinfo where
ordertime <= '$tommorow' and ordertime >= '$today' and process='2' and
dbstatus='1'"));	

echo $process1[0];
echo $process2[0];
echo $process3[0];

이와 같이 count로 갯수를 셀때 process='0' 이 조건 때문에 각기
쿼리를 해야하는데,


count(process='0') 과 같이 count 에 조건을 줄수 있는지 궁금
합니다.
안된다면 위와 같은 쿼리를 한번의 쿼리로 해결이 되는가가
궁금 합니다.

 
이전글 : Re: 특정 파일을 특정 디렉토리의 서브디렉토리에 덮어 쓰기...
다음글 : Re: php-count 질문좀...  
 from 61.39.61.245
JS(Redhands)Board 0.4 +@

Re: 특정 파일을 특정 디렉토리의 서브디렉토리에 덮어 쓰기... Re: php-count 질문좀...
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.02(server) + (network) + (browser) seconds