Post value to a php file to execute sql query and get back data in json format
问题 I am learning Flutter and trying to build a mobile application that can display my today courses. And I want to learn more about data handling so I try to use php and get data from database. My target is that I want to post the date value to the php file, then execute the sql query and get the data in json format. Finally, the data will be displayed in a Flutter app. A part of my php file is as follow: $date = $_POST["date"]; $sql = "SELECT * FROM Table WHERE Date = '$date'"; $response=array(