網頁程式撰寫/莊坤霖:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
P H P
P H P
第 37 行: 第 37 行:
 
#字串'123'+'456'='123456'
 
#字串'123'+'456'='123456'
 
*實數
 
*實數
#
+
#=-派入 一樣true& 1 不一樣 false & 0
#
+
#==-考慮內容不考型別true& 1 不一樣 false & 0
#
+
#===-考慮內容、型別true& 1 不一樣 false & 0
#
+

2016年2月15日 (一) 14:46的修訂版本

筆記

單字

  • insert into-插入
  • update-上傳
  • delete form-刪除表格
  • echo-送出
  • contect-type-內容類型
  • request-請求
  • form-表單
  • imput-輸入
  • submit-按鈕

P H P

  • PHP、ASP、JSP:除了生**不行
  • 結尾要[;]才會執行
  • "-字串開始
  • "-字串結束
  • echo $_REQUEST['studentName']-接收 studentName
  • input type='text'-方格可打文字
  • meta http-equiv='content-type' content='text/html;charset=UTF-8 /-編碼設為UTF-8
  • mysql_query(___) 函式判斷這個是否正確執行
  • $connect = mysql_connect("localhost","帳號","密碼");-建立資料庫連線
  • update web set-更新檔案
  • mysql_close-關閉mysql連線
  • mysql_select_db-連接資料庫選擇資料夾
  • 'where wid=__-ID
  • 柏納李發明HTML
  • $-變數前置字元
  • 保留字(mysql connect)不分大小寫,變數($Aa、$aa、$AA)名稱要分大小寫
  • 實字
  1. 字串:'abc'、'xyz'
  2. 整數:123
  3. 浮點數:'123'、'12.5'、'123.446'
  4. 布林值:true & 1、false & 0
  • 字串數字前面、結尾要加['],整數不用
  1. 整數123+456=579
  2. 字串'123'+'456'='123456'
  • 實數
  1. =-派入 一樣true& 1 不一樣 false & 0
  2. ==-考慮內容不考型別true& 1 不一樣 false & 0
  3. ===-考慮內容、型別true& 1 不一樣 false & 0