# PHP ###### tags: `puli_foodmap` ### 基本語法 - include() (或require) 獲得指定文件中的所有資料 - mysqli_query() 執行查詢 (連接要使用的MySQL, 要查詢的資料) - mysqli_fetch_assoc(result) 从result中取得每一行讀取到的資料,若要核對每行資料,會搭配while使用。 例如: ``` php= // 搜尋資料庫資料 $sql = "SELECT * FROM puli_manager Where user_login = '$user_login'"; $result = mysqli_query($link, $sql); while($row = mysqli_fetch_assoc($result)){ // 省略... } ``` - mysqli_connect() ### PHP 符號 - [符號大全查詢](https://code.yidas.com/php-symbol/) ### session [介紹session](https://www.runoob.com/php/php-sessions.html) ### Postman 測試注意事項 [會員註冊及登入系統API-測試](https://ithelp.ithome.com.tw/articles/10226798) [postman測試](https://ithelp.ithome.com.tw/articles/10201503) 記得是在<font color="#f000">**body內的form-data**</font>輸入你的key & value ### WordPress [WordPress如何加密](https://t.codebug.vip/questions-1243910.htm) ## 0508 1. **欄位不能輸入空值、用餐廳id刪除** 2. **確認 post 和 get** > login -> post > logout -> get > read -> get > create -> post > delete -> post > update -> post 3. **將餐廳的資料以json格式傳給地圖** 4. **UPDATE 餐廳資訊 by id** - 需身份驗證 - Use PATCH Method (參考資料: [HTTP Method](https://progressbar.tw/posts/53)) 5. **設計具有篩選功能之 READ API** 時間: 時段 類別: 早餐、午餐、晚餐、下午茶 價格: <100、<200、<300... 距離: 從前端取得GPS,包含呼叫 Google route API(查一下怎麼使用功能【距離矩陣】) **5/13 晚上8:30**
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up