프로그래밍/PHP 썸네일형 리스트형 session_cache_expire(30) 사용법 session_cache_expire(30);//session_start(); 전에 써야함 숫자는 분단위. 30분session_start(); 더보기 Warning: Cannot modify header information - headers already sent by Warning: Cannot modify header information - headers already sent by (output started at메세지 나올때 문제setcookie 위에 echo (출력문 사용해서) 위에 setcookie 밑에서 출력문 사용해야함 더보기 php mysql db연동 $conn = mysql_connect("localhost","root","apmsetup"); //접속설정 서버주소, 디비아이디, 비밀번호mysql_select_db("db2",$conn) or die(mysql_error());//디비선택mysql_query("set names utf8"); mysql_query("update color set cname='THERED' where cno='1'");//쿼리실행mysql_query("delete from color where cnum='10'");//쿼리실행 $result = mysql_query("select * from color"); //쿼리실행에서 변수에 적재while($row = mysql_fetch_array($result)){echo $r.. 더보기 이전 1 ··· 9 10 11 12 다음