Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask PHP Expert

Web Development Assignment: Database Connections

Create a MySQL or MariaDB database on your web host named your first name and last name. Most web hosts use PHPMyAdmin, a tool used to manage MySQL databases. See your web host's documentation / support site to determine how to create a MySQL database on your specific web host. You will also need to create a username and password to allow you to access the database from your PHP script using mysqli_connect().

Exclude any spaces; use one word such as "yourfirstnameyourlastname." Create a table named "comments." In the "comments" table, create the fields ID, name, title, comments, and comment date. Use the proper field types and allow comments to be over 100 characters. Comment date should be a timestamp field that is automatically updated with the current timestamp when a new record is inserted into the table. ID should be the primary key and auto increment.

Develop a PHP connection script that successfully connects to your database. It should use the MySQL_error() or MySQLi_error() function appropriately to test whether a successful connection exists.

Note, some web hosts may be using the new MySQL functions. Thus, you may notice the "I" placed in front of the latter function. You need to determine if your webhost requires new MySQL functions to work. For example, to connect to MySQL you may need to use:
mysqli_connect()
or
mysql_connect()

The textbook may use older functions and you can use the new versions by placing an "I" after "mysql" - mysqli_query().
Create a comments section on your family/friend/pet tree that is database driven. Upon successful authentication to the tree page, a user should be given a new link to a new form. The form should have a name, title, and a comment field. Proper form validation should exist.

Upon form submission, the name, title, and comment data should be inserted into the associated fields in the comments database table on your web host.

Write a SQL select statement against the comments table in your database and display each row properly formatted on the main tree page. The most recent comment should be displayed first. All user comments should display under the tree like:

Name of the person who made the comment

Title

Date

Comments

Write update and delete SQL statements that allow comments to be updated and removed from the tree. Upon completion, comments can be added, updated, and removed from the database via the family tree web page.

PHP , Programming

  • Category:- PHP
  • Reference No.:- M91865283
  • Price:- $75

Priced at Now at $75, Verified Solution

Have any Question?


Related Questions in PHP

In php write a simple addtion calculator that reads in two

In PHP write a simple addtion calculator that reads in two values and then add them together and display the output. Be sure to validate both inputs and ensure that it can add 0+0 = Sum: 0. The user should be able to inp ...

Question using the course software and week one template as

Question: Using the course software and Week One Template as a starting point, create a new HTML webpage and include the following: • Write the code to display your name in the largest-size heading element. • Write the m ...

Final project assignment -requirements specifications -1

FINAL PROJECT ASSIGNMENT - REQUIREMENTS / SPECIFICATIONS - 1. For the final project, you will have to make good use of your CMS using PHP and MySQL for the content delivery. You will have to be able to deliver the conten ...

Question develop a 5-6 page word document that describes

Question: Develop a 5-6 page Word document that describes the design for a small Web site that meets the following specifications. 1. The Web site includes four or more Web pages designed according to current usability g ...

Question continue to build on the skills of providing web

Question: Continue to build on the skills of providing Web page content and structure with HTML and Web page style and layout using CSS. Demonstrate the skill of creating a dynamic Web page that includes JavaScript clien ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As