Question: Help please Here is your homework assignment... Create a webpage that counts the number of times the page loads. First, create a new table called

Help please
 Help please Here is your homework assignment... Create a webpage that

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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!