PIXNET Logo登入

小 春 日 和

跳到主文

部落格全站分類:攝影寫真

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 02 週五 201122:49
  • 清單


  • 可燒錄外接光碟機

  • 外接硬碟500G UP

  • 手機(沒辦法,誰叫我手機在美國泡水死了。)

  • G2(現在鏡頭嚇死人,可是我去Time Square想到沒雞兔拍就心癢癢。)

  • T2(從大二念到現在還是沒入手。)

  • (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(16)

    • 個人分類:筆記
    ▲top
    • 9月 03 週五 201000:37
    • LINUX|E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)

    root@trainer:/var/lib# sudo apt-get install mysql-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    mysql-server is already the newest version.
    The following packages were automatically installed and are no longer required:
      mysql-client
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
    2 not fully installed or removed.
    E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the download directory
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(197)

    • 個人分類:筆記
    ▲top
    • 5月 10 週一 201008:57
    • php|自動轉向頁面有兩種寫法

    自動轉向有兩種寫法如下:
    <META HTTP-EQUIV='refresh' CONTENT='秒數; URL=網址'>
     
    現在在a網頁 然後現在要跳到c網頁去 可是送出a網頁其實應該是跳到b網頁
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(2,205)

    • 個人分類:筆記
    ▲top
    • 4月 17 週六 201022:37
    • 軟體|Gantt Project,甘特圖的好幫手

     
    官方載點:http://www.ganttproject.biz/
    免安裝中文版:http://azo-freeware.blogspot.com/2008/01/ganttproject-206.html
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(1,260)

    • 個人分類:筆記
    ▲top
    • 3月 22 週一 201014:05
    • 筆記|只是怕會忘記的論壇筆記

    圖檔[原本只能.rar,變更成.doc也可上傳設定]
    管理員控制台(ACP) → 發表 → 附加檔案的"管理副檔名群組"
    → 選擇 Documents 後面的編輯圖示 → 勾選"允許" → 送出。
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(27)

    • 個人分類:筆記
    ▲top
    • 1月 05 週二 201013:18
    • CSS|基本語法大全

    在<head></head>裡面寫CSS的樣式宣告
    <style type="text/css">
    <style/>
    之後再到<body></body>裡面應用樣式
     
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(2) 人氣(925)

    • 個人分類:筆記
    ▲top
    • 1月 02 週六 201015:45
    • 比較|WAMP比較(AppServ、XAMPP和Apache2TRIAD)

      Apache  
    最多人使用三大WAMP安裝模組:
    AppServ:http://www.appservnetwork.com/
    輕巧的WAMP套件(只裝重要的程式部分),把一些知名的CMS包成套件給我們選用
    如果只是要跑小論壇可以安裝這個即可,電腦負擔較小
    所以大部分我都用此建立php環境! 
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(2) 人氣(9,864)

    • 個人分類:筆記
    ▲top
    • 12月 18 週五 200919:27
    • PHP|html表格呈現 同下

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>testing</title>
    </head>
    <body>
    <?php
    /*
    * 建立資料庫
    * CREATE DATABASE `kiang_cycu` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    *
    * 建立資料表
     
    CREATE TABLE IF NOT EXISTS `messages` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `poster` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
    `title` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
    `body` text COLLATE utf8_unicode_ci NOT NULL,
    `time` datetime NOT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
     
    */
     
    /*
    * 資料庫連線
    */
    $dbn = new mysqli(
    'localhost', //主機位置
    'root', //帳號
    '123', //密碼
    'guestbook' //資料庫名稱
    );
    $dbn->set_charset('utf8');
     
    /*
    * 新增資料
    */
    if($dbn->query('SELECT COUNT(*) AS count FROM messages')->fetch_object()->count == 0) {
    $now = mktime();
    for($i = 1; $i <= 20; $i++) {
    $stmt = $dbn->prepare('INSERT INTO messages VALUES ( ?, ?, ?, ?)');
    $poster = 'poster' . $i;
    $title = 'title' . $i;
    $body = 'body' . $i;
    $date = date('Y-m-d H:i:s', ++$now);
    $stmt->bind_param('ssss', $poster, $title, $body, $date);
    $stmt->execute();
    $stmt->close();
    }
    }
     
    /*
    * 取得資料
    */
    echo '<table>';
    echo '<tr><th>編號</th><th>發表人</th><th>標題</th><th>內容</th><th>時間</th></tr>';
    $result = $dbn->query('SELECT * FROM messages');
    while($data = $result->fetch_object()) {
    echo '<tr>';
    echo '<td>' . $data->id . '</td>';
    echo '<td>' . $data->poster . '</td>';
    echo '<td>' . $data->title . '</td>';
    echo '<td>' . $data->body . '</td>';
    echo '<td>' . $data->time . '</td>';
    echo '</tr>';
    }
    echo '</table>';
    ?>
    </body>
    </html>
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(6,187)

    • 個人分類:筆記
    ▲top
    • 12月 18 週五 200919:27
    • PHP|資料庫連線 新增資料 取得資料

    <?php
    /*
    * 建立資料庫
    * CREATE DATABASE `kiang_cycu` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    *
    * 建立資料表
     
    CREATE TABLE IF NOT EXISTS `messages` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `poster` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
    `title` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
    `body` text COLLATE utf8_unicode_ci NOT NULL,
    `time` datetime NOT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
     
    */
     
    /*
    * 資料庫連線
    */
    $dbn = new mysqli(
    'localhost', //主機位置
    'root', //帳號
    '123', //密碼
    'guestbook' //資料庫名稱
    );
    $dbn->set_charset('utf8');//設定資料庫連線編碼 中文可以完整顯示
    //物件裡面的函式->方法(set_charset)
     
    /*
    * 新增資料
    */
                    //從資料庫查詢有多少數量     [!!!]判斷資料庫裡驗有沒有資料 如果"沒有"
    if($dbn->query('SELECT COUNT(*) AS count FROM messages') ->fetch_object()->count == 0) {//資料表
    $now = mktime();
    for($i = 1; $i <= 20; $i++) {//[!!!]沒有資料的話 就塞20筆進去
    //prepare 資料庫從使用者過來 先設定統一為字串格式
    $stmt = $dbn->prepare('INSERT INTO messages VALUES (NULL, ?, ?, ?, ?)');
    $poster = 'poster' . $i;
    $title = 'title' . $i;
    $body = 'body' . $i;
    $date = date('Y-m-d H:i:s', ++$now);
    //ssss 代表????都為字串格式 (不管是數字或是字串 都把他存成字串格式)
    $stmt->bind_param('ssss', $poster, $title, $body, $date);
    $stmt->execute();
    $stmt->close();
    }
    }
     
    /*
    * 取得資料
    */
    $result = $dbn->query('SELECT * FROM messages');//取所有資料
    while($data = $result->fetch_object()) {
    echo '<pre>';                              
    print_r($data);//印出資料庫所有資料
    echo '</pre>';
    }
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(2,150)

    • 個人分類:筆記
    ▲top
    • 12月 16 週三 200917:12
    • 筆記|PHP網頁之間資料的傳遞

    【網頁之間資料的傳遞 不同的傳遞方式】
    1.http-> 表單post方法
    2.URL-> 表單get方法
    (繼續閱讀...)
    文章標籤

    cabuchi 發表在 痞客邦 留言(0) 人氣(793)

    • 個人分類:筆記
    ▲top
    12»

    熱

    • (6,398)程式設計師的態度 哈哈好忠肯
    • (35,176)AppServ|安裝後無法啟用apache的原因

    近

    • HTTP|request method淺談
    • JS|cookies關掉瀏覽器不一定會真的清乾淨
    • 電影|聽說桐島退社了
    • PHP|抓資料夾全部檔案
    • PHP|APC upload process bar
    • Smarty|下拉選單1-50數字
    • JQ|模擬點擊
    • JQ|送出表單後,把表單值清空
    • PHP|把日期轉成我要的格式
    • Codeigniter|移除網址上的index.php

    分

    toggle 程式語言 (7)
    • Android Mobile (0)
    • drupel (3)
    • drupel (2)
    • FLASH CS3 (3)
    • API (0)
    • Other (1)
    • js (1)
    • HTTP (1)
    • Smarty (1)
    • YOUTUBE (2)
    • ASP (1)
    • FB (2)
    • MIS (0)
    • System (0)
    • MYSQL (2)
    • google analytics (1)
    • Cent OS (5)
    • JQ (19)
    • 面試 (3)
    • 國外旅遊 (1)
    • CSS (20)
    • 網路軟體設定 (5)
    • 作業學習 (3)
    • PHP (11)
    • JSP (2)
    • 筆記 (13)
    • 隨拍 (7)
    • 隨筆 (64)
    • 旅行 (7)
    • 未分類文章 (1)

    pixGoogleAdsense1

    pixGoogleAdsense2

    *

    文章彙整

    參觀人氣

    • 本日人氣:
    • 累積人氣: