Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = $db->getDataByWebsiteDate($website_name,$start_date,$end_date);
- while ($data= $result->fetch_assoc()) {
- array_push($response["data"], $data);
- }
- file_put_contents('newData.json', json_encode($response,128));
- echoRespnse(200, $response);
- }
- else{
- array_push($response["data"], "Incorrect date format, please use correct date format,e.g : YYYY-MM-DD");
- echoRespnse(200, $response);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement