How to post data from iOS app to MySQL database?

前端 未结 3 428
独厮守ぢ
独厮守ぢ 2021-01-24 23:11

I saw a similar post to my question but his solution did not work for me for some odd reason and it is making me age faster than Obama.

Basically I want to post data fro

3条回答
  •  盖世英雄少女心
    2021-01-24 23:48

    You are passing your parameters via GET. So that you have to change

    $dishname = $_POST['dishname'];
    $description = $_POST['description'];
    

    to

    $dishname = $_GET['dishname'];
    $description = $_GET['description'];
    

    in your PHP script.

提交回复
热议问题