½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 247 | Á¶È¸¼ö 4,107 | µî·ÏÀÏ 2008-06-29 00:59:09

´Ð³×ÀÓ

lee6607

À̸ÞÀÏ

lhc041@nate.com

Á¦¸ñ

jsp html DB¿¡¼­ Äõ¸® ºÒ·¯¿Í¼­ ¿ª¼øÀ¸·Î À¥ºê¶ó¿ìÀú¿¡ Âï´Â ¹ýÁ» ¾Ë·ÁÁÖ¼¼¿ä
³»¿ë

jsp ·Î ´ÙÀ½°ú °°ÀÌ Å×ÀÌºí °ªÀ» ºÒ·¯¿Í¼­ ÇÁ¸°Æ® ÇÏ´Â ¼Ò½¼µ¥¿ä

ÀÌ°Ô while ¹®À¸·Î µ¹¸®´Ùº¸´Ï±î À¥ºê¶ó¿ìÀú¿¡ »Ñ·ÁÁö´Â Çü½ÄÀÌ Ã³À½ µ¥ÀÌÅÍ ºÎÅÍ ÂïÇô¼­

¸¶Áö¸·±îÁö ÂïÈ÷°Ô µÇ´Âµ¥¿ä ÀÌ°É ¿ª¼øÀ¸·Î ¹Ù²Ù°í ½Í°Åµç¿ä

±×·¯´Ï±î  ÃÖ±Ùµ¥ÀÌÅÍ°¡ À§ÂÊ¿¡ ÂïÈ÷´Â Çü½ÄÀ¸·Î¿ä.

½±°Ô ÀÌÇØÇÏÀÚ¸é °Ô½ÃÆÇ ½ÄÀ¸·Î ÃÖ±Ù±ÛÀÌ À§ÂÊ¿¡ ÂïÈ÷°Ô ÇÏ°í½Í½À´Ï´Ù.

º¯¼ö°ª Áß¿¡¼­ numberÀÌ ±âº»Å°·Î¼­ µî·ÏµÇ´Â ±Ûµé ¼ø¹øÀ̰ŵç¿ä ÀÌ°ÉÀÌ¿ëÇؼ­ ¾î¶»°Ô Çϴ°Å

°°Àºµ¥ ¹æ¹ýÁ» ¾Ë·ÁÁÖ¼¼¿ä

 

<%rs = stmt.executeQuery( "select * from culdata" );%>//DB¿¡¼­ Äõ¸® ºÒ·¯¿À±â

 

<%  while( rs.next() )
  {
 String number = rs.getString("number");
 String zno = rs.getString("zno");
 String times = rs.getString("times");
 String temperature = rs.getString("temperature");
 String humidity = rs.getString("humidity");
 String state = rs.getString("state");
 

 %>
  No : <%=number%> Z-Number : <%=zno%> time : <%=times%> temperature : <%=temperature%> humidity : <%=humidity%> state : <%=state%><br> //À¥ºê¶ó¿ìÀú¿¡ °ª »Ñ¸®±â

<%
  }
}%>

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2008-07-01 20:14:17
´ä±Û

select * from culdata order by number desc ÇÏ¸é µÉ°Í °°±º¿ä.

ÀÌÀü°Ô½Ã±Û ¸¶¿ì½º¿À¹ö½Ã ¸»Ç³¼±¿¡ °ü·ÃÇؼ­ ¹°¾îº¾´Ï´Ù. °í¼ö´Ôµé ÇÔºÁÁÖ¼¼¿ä. 2008-06-17 13:43:17
´ÙÀ½°Ô½Ã±Û CGI ½ÇÇà¿¡ °ü·ÃÇؼ­.. 2008-07-21 09:39:40