Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Web application is written using object - oriented PHP programming, including classes for: Database Connection & Information Provides connection to the database Provides error handling
Web application is written using objectoriented PHP programming, including classes for:
Database Connection & Information
Provides connection to the database
Provides error handling for database connection issues
Provides methods to get database connection information
Included in the namespace "Models"
Contacts table model
Model of the Contacts table
Included in namespace "Controllers"
Contacts table DB
Provides methods for querying the database as follows:
Get contact by ContactNo
Get all contacts
Add contact
Update contact
Delete contact
Included in the namespace "Models"
Contacts table controller
Provides methods to control the flow of information between the user interface and the database
Included in the namespace "Controllers"
Web application includes a "landing page"
Filename: index.php
Title: "Your Name Midterm Practical"
Page Header: Your Name Midterm Practical
Header: Main Menu
Includes a link to the display contacts page
Web application includes user interface pages to display, add, update, and delete contact information:
Filename displaycontacts.php
Title: "Your Name Midterm Practical"
Page Header: My Contacts
Table displaying contact information from the database
ID column
Header: User ID
Display: ContactNo from the database
Name column
Header: Name
Display: ContactFirstName and ContactLastName name from the database formatted as Last, First
Address column
Header: Street Address
Display: ContactAddressLine from the database
Address column
Header: AptOfficeBldg
Display: ContactAddressLine from the database
City column
Header: City
Display: ContactCity from the database
State column
Header: State
Display: ContactState from the database
Zip column
Header: Zip Code
Display: ContactZip from the database
Date of Birth
Header: DOB
Display: ContactBirthdate from the database
EMail
Header: EMail Address
Display: ContactEMail from the database
Phone
Header: Phone Number
Display: ContactPhone from the database
Notes
Header: Additional Information
Display: ContactNotes from the database
Displays all rows contained in the database
Ability to Delete a contact from the database
Ability to Add or Update a contact in the database, with the following validation:
First Name
Required
Must contain at least characters
Last Name
Required
Must contain at least characters
Street Address
Required
No specific format required
AptOfficeBldg
Optional
No specific format required
City
Required
Must contain at least characters
State
Required
uppercase letters only
Zip
Required
numbers only
Date of Birth
Required
Uses a Date Picker
EMail
Required
Must be a validly formatted email address
Phone
Required
Format XXXXXXXXXX
Notes
Optional
Up to characters allowed
If there are validation errors:
An error message should be displayed next to the field with the error describing the expected input
The information should be retained in the entry fields
The information should not be saved to the database
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started