묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
db query php함수좀 도와주세요
2016.08.31 13:33
아래 php코드는 db에서 select로 값을 뽑아오는것인데요
출력되야할 값들이 여러개인데 print_r로 값을 출력해보면 값이 한개만 뽑아져 있다고 나오는데
뭐가 잘못되어있는지 잘 모르겠습니다. 조언부탁드립니다.ㅠㅠ
$t_date = today("Ymd");
$qry = "SELECT document_srl FROM table WHERE var_idx=1 && value>$t_date";
$res = mysql_query($qry,$conn);
$d_s1 = mysql_fetch_array($res);
print_r($d_s1);