昱得資訊工作室
麻辣學園
歡迎光臨, 訪客. 請先 登入註冊一個帳號.
您忘了 啟用您的帳號嗎?
2008-07-06, 14:23:52
首頁 說明 登入 註冊 贊助論壇 想當作者?
新聞: 為增進論壇品質,全面更新硬體設備,經費有限,請各位踴躍贊助論壇!!


+  麻辣家族討論區
|-+  網頁設計
| |-+  PHP
| | |-+  FS410 DreamWeaver CS3 使用 PHP
0 會員 以及 0 訪客 正在閱讀本篇主題. « 上一篇主題 下一篇主題 »
頁: 1 [2] 向下 列印
作者 主題: FS410 DreamWeaver CS3 使用 PHP  (閱讀 2275 次)
yuhuang
小學生
*
離線 離線

文章: 6


Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #10 於: 2007-12-19, 15:22:07 »

無言~"~
已記錄
小誌
論壇管理員
*
離線 離線

會員性別: 男
文章: 588



個人網站
Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #11 於: 2007-12-19, 15:23:02 »

無言~"~
不會連試都不想吧

* blogcalendar.txt (0 KB - 已被下載 2 次.)
已記錄

為了論壇的永續經營,您不妨
贊 助 論 壇
yuhuang
小學生
*
離線 離線

文章: 6


Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #12 於: 2007-12-19, 15:34:24 »

我再試試吧~謝謝您的回覆
只是沒注解不知道哪一段是是甚麼意思

PHP新手~抱歉麻煩了
已記錄
小誌
論壇管理員
*
離線 離線

會員性別: 男
文章: 588



個人網站
Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #13 於: 2007-12-19, 15:51:28 »

我再試試吧~謝謝您的回覆
只是沒注解不知道哪一段是是甚麼意思

PHP新手~抱歉麻煩了
檢查了一下給你的原始碼,其實最早給的原始碼應該就沒問題了
我猜是你沒有更改"每個"含有月曆網頁的程式碼
已記錄

為了論壇的永續經營,您不妨
贊 助 論 壇
yuhuang
小學生
*
離線 離線

文章: 6


Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #14 於: 2007-12-19, 16:19:03 »

我是用include的方式
把那段單獨存成一個PHP檔
已記錄
yuhuang
小學生
*
離線 離線

文章: 6


Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #15 於: 2007-12-19, 16:38:42 »

目前我是這樣改~月底那幾天沒問題了連結有出現了
---------------------------------------------------------------------------------------------------------------
.
.      
$printDays = $days-$x;
      mysql_select_db($database_blogConn, $blogConn);
      $query_RecordsetCa = "SELECT blog_postdate FROM blog_msg where date(blog_postdate)='" .($YYYY . "-" . $MM ."-" . substr("0" . $printDays,-2))."'";
      $RecordsetCa = mysql_query($query_RecordsetCa) or die(mysql_error());
      $row_RecordsetCa = mysql_fetch_assoc($RecordsetCa);   
      if(($YYYY . "-" . $MM ."-" . substr("0" . $printDays,-2))==date("Y-m-d",strtotime($row_RecordsetCa['blog_postdate']))){
      print("<td align='center'><a href=". "blogsearch.php" ."?MM=".$MM."&YY=".$YYYY."&DD=" . substr("0" . $printDays,-2) . ">$printDays</a></td>");
      $printDays++;
      }elseif ($printDays==$dd){
      print("<td align='center'>$printDays</td>");
      $printDays++;
      }else{
      print("<td align='center'><font color='#333399'>$printDays</font></td>");
      $printDays++;
      }
      }
      for($z=1;$z<$firstDay-$lastDay;$z++){
.
.
---------------------------------------------------------------------------------------------------------------
已記錄
小誌
論壇管理員
*
離線 離線

會員性別: 男
文章: 588



個人網站
Re: FS410 DreamWeaver CS3 使用 PHP
« 回覆文章 #16 於: 2007-12-19, 16:47:16 »

目前我是這樣改~月底那幾天沒問題了連結有出現了
---------------------------------------------------------------------------------------------------------------
.
.      
$printDays = $days-$x;
      mysql_select_db($database_blogConn, $blogConn);
      $query_RecordsetCa = "SELECT blog_postdate FROM blog_msg where date(blog_postdate)='" .($YYYY . "-" . $MM ."-" . substr("0" . $printDays,-2))."'";
      $RecordsetCa = mysql_query($query_RecordsetCa) or die(mysql_error());
      $row_RecordsetCa = mysql_fetch_assoc($RecordsetCa);   
      if(($YYYY . "-" . $MM ."-" . substr("0" . $printDays,-2))==date("Y-m-d",strtotime($row_RecordsetCa['blog_postdate']))){
      print("<td align='center'><a href=". "blogsearch.php" ."?MM=".$MM."&YY=".$YYYY."&DD=" . substr("0" . $printDays,-2) . ">$printDays</a></td>");
      $printDays++;
      }elseif ($printDays==$dd){
      print("<td align='center'>$printDays</td>");
      $printDays++;
      }else{
      print("<td align='center'><font color='#333399'>$printDays</font></td>");
      $printDays++;
      }
      }
      for($z=1;$z<$firstDay-$lastDay;$z++){
.
.
---------------------------------------------------------------------------------------------------------------

沒錯就是這裡,另一種改法
改了之後你的功力應該也有所增進囉
已記錄

為了論壇的永續經營,您不妨
贊 助 論 壇
頁: 1 [2] 向上 列印 
« 上一篇主題 下一篇主題 »
跳到:  


本頁花了 0.112 秒, 以及 21 次的資料庫查詢.