<div style="background: url(../images/banner_590x170_society.jpg) no-repeat center; padding-top: 38px; background-size: cover; cursor: pointer;" onclick="location.href = '超連接路徑'">

 

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

 SQL 欄位代號轉中文   (Case When 使用方式)

      @"

文章標籤

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

<?php

/**
 * 数组转xml字符
 * @param  string  $xml xml字符串
**/
class A2Xml {
    private $version    = '1.0';
    private $encoding   = 'UTF-8';
    private $root       = 'root';
    private $xml        = null;
    function __construct() {
        $this->xml = new XmlWriter();
    }
    function toXml($data, $eIsArray=FALSE) {
        if(!$eIsArray) {
            $this->xml->openMemory();
            $this->xml->startDocument($this->version, $this->encoding);
            $this->xml->startElement($this->root);
        }
        foreach($data as $key => $value){
            if(is_array($value)){
                $this->xml->startElement($key);
                $this->toXml($value, TRUE);
                $this->xml->endElement();
                continue;
            }
            $this->xml->writeElement($key, $value);
        }
        if(!$eIsArray) {
            $this->xml->endElement();
            return $this->xml->outputMemory(true);
        }
         
    }
}
$res = array(
    'hello' => '11212',
    'world' => '232323',
    'array' => array(
        'test' => 'test',
        'b'    => array(
            'c'=>'c',
            'd'=>'d'
            )
    ),
    'GHPREC_ID' => 'haha'
);
$xml = new A2Xml();
echo htmlentities($xml->toXml($res),ENT_QUOTES,"UTF-8");
?>

文章標籤

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

這是一篇很好的文章
避免作者把網站刪掉  我的來源失效 在此做個備份

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

PHPStrom 2018.3破解方式

 

文章標籤

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

http://www.runoob.com/try/try.php?filename=jqueryui-example-sortable

 

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

開發的概念為將header 與導覽列為一個檔案

內容為一個檔案的開發概念

文章標籤

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

開發環境:Visual Studio Code 

於資料夾內新增dbconfig.php 用於作為mySQL連線設定檔

文章標籤

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

在GridView屬性上設定DatakeyNames

 //在GridView任意事件上都常用到刪除前做什麼?新增前要先更新哪裡的資料之類的 

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

#GridView

屬性Showheader = false

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

1 2