 |
|
คือว่าผมเขียน function ให้แสดงวันที่และเวลาแต่พอเพิ่มข้อมูลมันฟ้อง eeror ว่า
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\AppServ\www\news\news_add2.php on line 15
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\AppServ\www\news\news_add2.php on line 16
อันนี้ไฟล์ function.php
<?
$newtype[1]="ÁØÁ¤ÇÒÁÃÙé¢Í§Êӹѡ";
$newtype[2]="ÁØÁÊÃØ»º·àÃÕ¹µÒÁÀÒáԨ";
$newtype[3]="ÁØÁÊÃØ»º·àÃÕ¹¢Í§¼Ùéà¢éÒͺÃÁ´Ù§Ò¹";
$newtype[4]="ÁØÁ¹Çѵ¡ÃÃÁ¢Í§ÊӹѡÏ";
$newtype[5]="ÁØÁ¡Ô¨¡ÃÃÁáÅ¡à»ÅÕ蹤ÇÒÁÃÙé";
$newtype[6]="ÁØÁsoftware";
$newtype[7]="ÁØÁ¡º¹Í¡¡ÐÅÒ";
$newtype[8]="ÁØÁ¶Í´¤ÇÒÁÃÙé";
$newtype[9]="ÁØÁáªÃ캷¤ÇÒÁ¹èÒʹã¨";
$newtype[10]="ÁØÁáªÃìä¿Åì¡ÒúÃÔËÒèѴ¡ÒÃÀÒ¤ÃѰ";
$newtype[11]="ÁØÁ¤ÅÔ» ÇÕ´ÕâÍ á¹Ð¹Óâ¤Ã§¡ÒÃ";
function displaydate($x){
$date_m=array("Á.¤.","¡.¾.","ÁÕ.¤.","àÁ.Â.","¾.¤.","ÁÔ.Â.","¡.¤.","Ê.¤.","¡.Â.","µ.¤.","¾.Â.","¸.¤.",);
$date_array=explode("-",$x);
$y=$date_array[0]+543;
$m=$date_array[1]-1;
$d=$date_array[2];
$m=$date_m[$m];
$displaydate="$d $m $y";
return $displaydate;
}
?>
อันนี้ไฟล์ add2.php line15และ16
$date_new=date("Y-m-d");
$time_new=date("H:i:s");
รบกวนช่วยหน่อยนะคับ ขอบคุณล่วงหน้า
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
7 ต.ค. 2551 10:12:07 |
By :
aody_1 |
View :
1519 |
Reply :
0 |
|
 |
 |
 |
 |
|
|
|
 |