Implements all the crud operations on a database named iot

Assignment Help PHP Web Programming
Reference no: EM131066881

Write a single page PHP application that implements all the CRUD operations on a database named "IOT" that contains a table named "TEMPERATURE" that has the following structure:

CREATE TABLE TEMPERATURE (

id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,

temperature DOUBLE NOT NULL,

longitude DOUBLE NOT NULL,

latitude DOUBLE NOT NULL,

description VARCHAR(50),

measurement_date TIMESTAMP

)

The credentials to connect to the database are as follows: username="root" and password="root"

The following examples illustrate the RESTful CRUD operations that your application should support:

https://localhost/hw1.php?op=insert&temperature=78.34&long=85.2343242&lat=-34.35233&description=Room-A-214&time=20160514201633

https://localhost/hw1.php?op=udate&id=3&temperature=81.34

https://localhost/hw1.php?op=delete&id=7

https://localhost/hw1.php?op=listall

https://localhost/hw1.php?op=getdetails&id=2

https://localhost/hw1.php?op=getlatest

The response of all of these operations must be in JSON format.

Further, the response of this operation https://localhost/hw1.php?op=table must be an HTML page that displays a table of all the recorded temperature readings where the background of the even rows is white and that of the odd rows is blue.

Reference no: EM131066881

Questions Cloud

How man liters of water will this tub hold : How man liters of water will this tub hold
Following response and write a five paragraph essay : Directions: Read the following response and write a five paragraph essay. MLA Format is required and you must cite from the novel. The essay is due on May 20 and it is worth a quiz grade.
Develop atomic model : What experimental evidence led Thomson to develop his atomic model? What was the reasoning that led Thomson to develop this model? What experimental evidence led Rutherford to develop his atomic model?
Hypothetical configurations for a beryllium atom : The following are hypothetical configurations for a beryllium atom.
Implements all the crud operations on a database named iot : Write a single page PHP application that implements all the CRUD operations on a database named "IOT" that contains a table named "TEMPERATURE" that has the following structure.
How teachers really make a difference to effective program : How do teachers really make a difference to an effective program?
Hypothetical configurations for a chlorine atom : The following are hypothetical configurations for a chlorine atom.
Evaluate a range of social media metrics : ITECH 7408 Social Media Strategy & Management. Purpose - The purpose of this task is for students to work in a team to investigate and evaluate a range of social media metrics and analytic approaches informing recommendations towards an organisati..
Write a five pages research paper about oracle : Write a five pages research paper about Oracle, Microsoft SQL server, SyBase, DB2 and MySQL. The paper is focus on Enitity/Relation model and relational database. You need to provide the hosories of ER Model and relational databases.

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Implement a web application called cs320starter which is

implement a web application called cs320starter which is similar to the crowd funding platform kickstarter where people

  Create a web site for an apple farm john smith has been a

create a web site for an apple farm. john smith has been a farmer for a number of years and he has been using an

  Describe the company and the product safety issue that led

describe the company and the product safety issue that led to the lawsuit.discuss the legal theories used by the

  This problem is pertaining to the html language

CS5334.0251/0252, Spring, 2014 Assignment, Advanced Internet Information Processing subject, This problem is pertaining to the HTML language. You can create your own web page by placing an HTML page in the “public html” directory within your home dir..

  What web-based sites offer file sharing similar to napster

What other Web-based sites offer file sharing similar to Napster?

  Create a simple web application that collects gradings

create a simple web application that collects gradings under a number of criteria and then evaluates an aggregate mark.

  Discuss three known vulnerabilities on the technologies

Discuss three known vulnerabilities or exploits on the technologies above. Discuss how you will be able to mitigate the known vulnerabilities or exploits.

  Create a web page with a simple cgi script

Create a web page with a simple CGI script which prints the status of the service(s) ie UP, DOWN etc.To do this you are to use the data stored in the NDOUTILS database.

  Write a php script to create a table in your database server

Create a page and scripts to delete a data record. Use the web page from the Data Retrieval and Display section to first retrieve and display the data. Then include a form with a Submit button (label it Delete) that calls a PHP script to delete th..

  Php database

PHP Connect to the MySQL Server

  Simple php script to parse out custom lines from an log

simple php script to parse out custom lines from an log file and echo that line heres an example of a line from the log

  Create dynamic drop-down menu in php

Create dynamic drop-down menu in PHP. For example, let's say that there is a drop-down menu with list of car manufacturers; Toyota, Ford, and Chevy.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd