Question: Hello, i need this to be done in PHP the code can't be more than 12 lines long. i can provide front end code. Thank


Hello, i need this to be done in PHP the code can't be more than 12 lines long. i can provide front end code. Thank you.
Here is your homework assignment... Create a webpage that counts the number of times the page loads. First, create a new table called pagecounter with 2 integer fields, 'id' and 'count'. Give the count field an initial value of 0. So this table will have one single record. The pagecounter table should look like this... id count Next, create a PHP page that increases the value of the count field by 1 using an update query. Then print the value of the count field onto the page. So every time you refresh, the value will be increased by 1 The code to UPDATE an existing record is simple. Create a query to update the count field. Google "SQL update query" to see examples. You should do this using less than 12 lines of PHP code. I did it in 8 lines (not including comments) Have a look at my sample on the following page. You can also visit the page and see it live in action... http:/ewton.ncc.edu/gansonj/ite254/page load.php Use any CSS template you want, or create your own
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
