r00ry      2002/01/04 18:08:33     11848     0   
   ÃֱٰԽù° ÃßÃâ... [8]
ÃÖ±Ù °Ô½Ã¹° ÃßÃâ... (Á¦ ȨÇÇ¿¡ Àû¿ëÇÑ ÃßÃâ¹°ÀÔ´Ï´Ù.)

¹°·Ð Á¦·Îº¸µåȨÆäÀÌÁö¿¡¼­ Æۿ°ÍÀ̱¸¿ä....
<?
mysql_connect("localhost","DBID","DBPWD");
//DBID = sql ID, DBPWD= sql password
mysql_select_db("DBNAME");
//DBNAME=sql ¸í
$result=mysql_query("select * from boardname order by no desc limit NO") or die(mysql_error());  
//boardname= °Ô½ÃÆÇ ¸í , NO = »Ì¾Æ³¾ °Ô½Ã¹° ¼ýÀÚ (¿¹: 5)
while($data=mysql_fetch_array($result))
{
$memo=stripslashes($data[memo]);
$data[subject] = stripslashes($data[subject]);
$max = NO;
//NO = °Ô½Ã¹° ÃßÃâ½Ã ÃÖ´ëÃâ·ÂµÇ´Â Á¦¸ñ ¼ýÀÚ (¿¹ : 30)
$count = strlen($data[subject]);
if($count >= $max) {
for ($pos=$max;$pos>0 && ord($new[subject][$pos-1])>=127;$pos--);
if (($max-$pos)%2 == 0)
$data[subject] = substr($data[subject], 0, $max) . "..";
else
$data[subject] = substr($data[subject], 0, $max+1) . "..";
}
else {
$data[subject] = "$data[subject]";
}
echo " <style type=\"text/css\">
a { font: 9pt ±¼¸²; text-decoration: none; color: black ; }
a:hover { text-decoration: underline; color: black ; }
</style>
<table cellpadding=\"0\" cellspacing=\"0\">
    <tr>
        <td width=\"240\" onMouseOver=this.style.backgroundColor='ECF9FF' onMouseOut=this.style.backgroundColor=''>
            <font size=2 color=black>[".date("m-d",$data[reg_date])."] <a href='URL/view.php?id=boardname&no=$data[no]')>".stripslashes($data[subject])."</a></font>
// URL = ÇØ´ç url , boardname= °Ô½ÃÆÇ ¸í
        </td>
    </tr>
</table>";
}
mysql_close();
?>


¿©±â ±îÁö ÀÔ´Ï´Ù.   // ~~  ´Â ¼³¸íÇϱâÀ§ÇÑ ÇàÀÔ´Ï´Ù... (»èÁ¦Çϼ¼¿ä)
   
ÄÚ¸àÆ®¸¦ ÀÛ¼ºÇϽøé 2 Æ÷ÀÎÆ®°¡ Áö±ÞµË´Ï´Ù.
r00ry


2002/01/04 18:09:52
[³¯Â¥, °Ô½ÃÆÇ Á¦¸ñÃâ·Â] ÃßÃâ¹°ÀÔ´Ï´Ù.

¡ÙORC¡Ù


2002/01/04 18:30:15
phpÃ¥ »ç¼­ ºÁ¾ß¡~~ ¤Ñ¤Ñ;;

¡ÙORC¡Ù


2002/01/04 18:30:23
¾î·Æ³ß...




2002/01/21 17:32:40
ÀÌ°Ç ¾îµð¿¡´Ù ³Ö´Â°Ç°¡¿©?

ºê¶óÀ̾ð´ëÀ§21C


2002/01/27 02:19:37
ÀÌ°ÍÀ» ¼öÁ¤Çؼ­ html¹®¼­ÀÚü¿¡ ¼Ò½º¸¦ ³Ö´Â°Ç°¡¿©

r00ry


2002/02/01 23:57:42
html ÆÄÀÏ Ã·°¡Çؼ­ htm ÆÄÀÏÀ̳ª php ÆÄÀÏ·Î ¸¸µå½Ã¸é..... ^^ ±×·¡µÎ ¾ÈµÇ¸é...ÂÊÁöÁÖ¼¼¿ä

Lusian


2003/02/17 14:34:59
mysql_connect("localhost","DBID","DBPWD") ¿¡¼­ ·ÎÄÃÈ£½ºÆ® ºÎºÐÀº ³öµÎ´Â°Ç°¡¿ä? ¾Æ´Ï¸é ·ÎÄÃÈ£½ºÆ®¸¦ ÀÔ·ÂÇؾßÇϳª¿ä?


Lusian


2003/02/27 18:13:04
Àú°Í ±×·¸´Ù Ãĵµ ¸¸¾à ÃֱٰԽù° ÆÄÀÏÀ» ¸¸µç´Ù¸é ÃֱٰԽù° ¸¸µé½Ã¿¡ ±âÁ¸ÀÇ z_list.php ÆÄÀÏÀÌ ÀÖ´Ù¸é ±×°ÍÀ» »èÁ¦ÇÏ°í ´Ù½Ã z_list.php¸¦ »õ·Ó°Ô ¸¸µé¾ú´Ù°í ÇսôÙ. ±×·±µ¥ Ãâ·Â½Ã¿¡´Â ¾î¶² ű׸¦ ½á¾ß ³ªÅ³¾¾¥ÀÕÁÒ? ÃֱٰԽù° ÇüÅÂÀÇ ¼Ò½º´Â ÁÖ¾îÁ³Áö¸¸
ÃֱٰԽù°·Î ³ªÅ¸³¾ Ãâ·Â ¼Ò½º¸¦ ¸ô¶ó °í»ýÁß~


       

219 ´ÜÃàÅ°¿¡ °üÇÑ ÆÁ ¸ÚÀïÀÌ 06/26 13236
218 ȨÆäÀÌÁö¸¦ ¸¸µé¶§ ¾Ë¾ÆµÎ¸é À¯¿ëÇÑ ¹«·á»çÀÌÆ® ... ¸ÚÀïÀÌ 06/26 25944
217 À½¾Ç »çÀÌÆ®¿¡¼­ ¼Ò½º °¡Á®¿À´Â ¹æ¹ý ¸ÚÀïÀÌ 06/26 14172
216 IIS¿¡ PHP+MySQL¸¦ ¼³Ä¡ÇÏÀÚ. À£Æ® 06/22 18077
215 [XPÆÁ4] ½Ç½Ã°£ µ¿¿µ»óÀ» ²÷±è¾øÀÌ °¨»óÇϱ⠿ÀºñÅ»1 06/22 13537
214 [XPÆÁ3] ¿À·ù º¸°í(MSÀü¼Û)â ³ªÅ¸³ªÁö ¾Ê°Ô Çϱâ... ¿ÀºñÅ»1 06/22 13357
213 [XPÆÁ2] ÀÎÅͳÝÀͽºÇ÷η¯ ·Îµù¼Óµµ Ç⼧¹ý ¿ÀºñÅ»1 06/22 13499
212 [XPÆÁ1] DOS¸ðµå¿¡¼­ XP¼³Ä¡ÇÏ´Â ¹æ¹ý ¿ÀºñÅ»1 06/22 13320
211 CD·ÒÀÇ ÀÚµ¿ ÀÛµ¿ ±â´É ¾ø¾Ö±â ¿ÀºñÅ»1 06/22 13321
210 [TIP] À¯¿ëÇÑ ÆÁ ¸ÚÀïÀÌ 06/16 19146
209 ºÒ¹ý¼ÒÇÁÆ®¿þ¾î °Ë»öÇϱâ. [1] ¸ÚÀïÀÌ 06/16 21900 06/21(01:52)
208 °øÂ¥¿¡¿ä^^ [2] ¸ÚÀïÀÌ 06/10 13854 06/21(01:51)
207 PCS ÅëÈ­Ç°Áú Çâ»ó ¹æ¹ý [1] ¸ÚÀïÀÌ 06/10 12832 06/21(01:52)
206 PCS ÅëÈ­½Ã ±×³É ¹ö¸®´Â 10ÃÊ ¸ÚÀïÀÌ 06/10 12275
205 ¹÷½º¹ÂÁ÷ À½¾ÇÁÖ¼Ò ¾Ë¾Æ³»±â ¸ÚÀïÀÌ 06/10 13170
FIRST4567891017LAST