whereor()
### 說明
~~~
Query whereor(string | array $condition, $parameters = array())
~~~
與 where 一樣使用,不同的是本函數是以 OR 來連接
### 示例
~~~
$query = load()->object('query');
$row = $query->from('users', 'u')->where('sex', '1')->whereor('uid', 2)->get();
//生成SQL如下
//SELECT * FROM users AS U WHERE sex = '1' OR uid = '2' LIMIT 1
~~~
- 微擎框架
- 目錄結構
- 配置選項
- 數據庫配置($config[db])
- 系統COOKIE配置項($config[cookie])
- 系統設置($config[setting])
- 預定義常量
- 全局變量
- 全局配置
- 系統配置
- 公眾號相關
- Web 端可見
- App 端可見
- 網頁授權
- URL 路由
- url生成助手
- createMobileUrl
- createWebUrl
- 文件加載器
- func(加載公共函數)
- class(加載公共類)
- model(加載系統model函數)
- web(加載web端公共函數)
- app(加載app端公共函數)
- library(庫文件加載)
- object(實例化加載)
- singleton(單例加載)
- 緩存機制
- cache_write
- cache_load
- cache_delete
- cache_clean
- cache_system_key
- 數據庫
- SQL注入安全
- 連接其它數據庫
- 函數列表
- pdo_get
- pdo_getcolumn
- pdo_getall
- pdo_getslice
- pdo_fetch
- pdo_fetchcolumn
- pdo_fetchall
- pdo_insert
- pdo_update
- pdo_delete
- pdo_query
- pdo_run
- pdo_fieldexists
- pdo_indexexists
- pdo_tableexists
- pdo_fieldmatch
- pdo_debug
- 鏈式查詢
- from
- select
- where
- whereor
- having
- groupby
- orderby
- leftjoin
- innerjoin
- on
- limit
- page
- get
- getall
- getcolumn
- count
- exists
- getLastQueryTotal
- getLastQuery
- 錯誤處理
- 日志記錄
- 模板引擎
- 模板標簽
- 輸出變量
- 判斷語句
- 循環語句
- php語句
- 引用模板
- 創建URL
- 轉義附件URL
- 輸出花括號
- 數據調用
- 調用微站導航
- 調用幻燈片
- 調用文章列表
- 調用分類列表
- 調用快捷菜單
- 常用變量
- 附錄
- 數據庫字典
- 自定義分享