Modify the attached PHP and HTML sources as necessary to login_parser.php a. Create a session b. Use the session to communicate the name of the logged in user to all other HTML/PHP contexts Modify...

1 answer below »

Modify the attached PHP and HTML sources as necessary to

login_parser.php

a. Create a session

b. Use the session to communicate the name of the logged in user

to all other HTML/PHP contexts

Modify user.html

a. To allow a tag to be added to when inserting a new blog entry

b. To allow a user to search for blogs by tag

Modify blog_user.php

a. add the session_start() call

b. Modify insertBlog() to accept a TAG parameter

c. Use the username passed from the login to the insertBlog() API.

Modify blog_db_interface.php

a. To execute the new insert (TAGs can be added)

If the TAG exists use that one

If the TAG does not exist then create a new TAG entry

b. To search by a specific TAG value

Search results should include Blogger Name, Blog Summary

What to turn in (as a single ZIP please)

Your latest blog.mwb plus all html and PHP source files


session _solutions(3).zip provides most of the solution

My attempt: session tag_assignment attempt.zip is mostly done but has errors that need to be corrected so that it compiles and parses to run– see below the errors

does not parse correctly Parse error: syntax error, unexpected 'public' (T_PUBLIC) in C:\Apache24\htdocs\delme\blog_db_interface.php on line 269 Notice: Undefined variable: blogTag in C:\Apache24\htdocs\delme\blog_user.php on line 49 Added to blog content Notice: Undefined variable: blogTag in C:\Apache24\htdocs\delme\blog_db_interface.php on line 179 Notice: Undefined variable: blogTag in C:\Apache24\htdocs\delme\blog_db_interface.php on line 194 Added to blog contentException: Sorry, Dave. Invalid Date and Time Format in C:\Apache24\htdocs\delme\blog_user.php:59 Stack trace: #0 {main}

login_parser.php no changes needed

Create a session no changes needed

Use the session to communicate the name of the logged in user Modify blog_user.php no changes needed

user.html allow a tag to be added to when inserting a new blog entry, allow a user to search for blogs by tag

blog_db_interface.php execute the new insert

(TAGs can be added) To search by a specific TAG value

Answered Same DayAug 18, 2022

Answer To: Modify the attached PHP and HTML sources as necessary to login_parser.php a. Create a session b. Use...

Aditi answered on Aug 18 2022
13 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here