BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: Ä«¿îÅÍ ½ÉÇÃÄ«¿îÅÍ v0.001 by stone Á¶È¸¼ö: 8276


mysql> desc counter;
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| num | varchar(11) | YES | | NULL | |
| num1 | varchar(11) | YES | | NULL | |
| daytime | varchar(12) | YES | | NULL | |
+---------+-------------+------+-----+---------+-------+
3 rows in set (0.01 sec)

<?
include "condb.inc";
$A=date("Y");
$B=date("m");
$C=date("d");
$D=$A.$B.$C;

$query = "select num,num1,daytime from counter" ;
$result = mysql_query($query,$connect);
$row=mysql_fetch_array($result);

if($D != $row[daytime]) {
$query="update counter set num=1,num1=num1+1,daytime='$D'";
$result = mysql_query($query,$connect);

$query = "select num,num1,daytime from counter" ;
$result = mysql_query($query,$connect);
$row=mysql_fetch_array($result);

}

else
{

$query="update counter set num=num+1,num1=num1+1,daytime='$D'";
$result = mysql_query($query,$connect);

$query = "select num,num1,daytime from counter" ;
$result = mysql_query($query,$connect);
$row=mysql_fetch_array($result);
}

echo "
<table border='0' cellpadding='0' width='120'>
<tr>
<td width='35'><p><font size='2' color='navy'><b>Àüü</b></font></td>
<td width='74'><p><font size='2'><b>$row[num1]</b></font></td>
</tr>
<tr>
</table>
";

?>

°ü·Ã±Û : 1 °Ç ±Û¾´½Ã°£ : 2002/10/31 12:46 from 218.154.16.35

 

Á¦ ¸ñ

Á¶È¸

³¯Â¥

±Û¾´ÀÌ

½ÉÇÃÄ«¿îÅÍ v0.001 by stone

8276

2006.08.10

Ä«¿îÅÍ


  phpftp ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ php.ini[PHP4±âÁØ]¼³¸í  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡