Develop a php connection script

Assignment Help PHP Web Programming
Reference no: EM131107677

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.

Verified Expert

This paper is about the details of Post Comment Project. The main idea of this project is to post comment on different category. User can select any category and post there comments. This project provide the ability to edit and delete any comment of a category to users. User can view comments post by other users. The paper has been prepared in Microsoft Office Word Document.This paper is about the details of Post Comment Project. The main idea of this project is to post comment on different category. User can select any category and post there comments. This project provide the ability to edit and delete any comment of a category to users. User can view comments post by other users. The paper has been prepared in Microsoft Office Word Document.

Reference no: EM131107677

Questions Cloud

Seems to be triggering the challenging behavior : What is the target behavior? What seems to be triggering the challenging behavior? What are the consequences that seem to maintain it? What function does this behavior serve for the child?
Explain what the criticisms are surrounding the act : Explain what the criticisms are surrounding the Act. Explain the economic consequences for companies as a result of implementing the Act. Explain if the Sarbanes-Oxley Act has achieved its goals so far. Provide examples to support your reasoning.
Determine its age assuming that in living trees : Note that the half life of carbon-14 is 5700 years and the Avogadro number is 6.02 × 1023.
Document for analysis on poor claim letter : I hate to write to you with a complaint, but my company purchased four of your Multifunction SX500 photocopiers, and we've had nothing but trouble ever since.
Develop a php connection script : 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.
Explain the potential personal liability to acme fireworks : Discuss the different employment types and relationships relevant to agency law, and analyze the advantages and disadvantages of each type specific to Acme Fireworks.
Law of one price being violated : Suppose you are shopping for a new automobile. You find the same car at two dealers but at different prices. Is the law of one price being violated? Why or why not?
Bartender at the tucson racquet club : Cathy Livingston, bartender at the Tucson Racquet Club, can serve drinks at the rate r of one every 50 seconds, During a hot evening recently, the bar was particularly busy and every 55 second someone was at the bar asking for a drink.
Encountering a learning organization : How can you tell when you are encountering a learning organization?

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Random integral numbers based on normal distribution

Prepare a system to generate random integral numbers based on normal distribution. Study Data Generator's structure and extend number generation type to activate normal distribution.

  Shopping cart program for web applications class

Shopping Cart program for web applications class. Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for all items.

  Create a web site for an apple farm

Create a web site for an apple farm. Create an HTML5 form allowing visitors to create an account with the site. Account details are to be stored in your MySQL database. Information should be stored in a secure way.

  Develop a dynamic website open university

Develop a dynamic website Open University

  Sample website project

This website consists of three sections: a narrative, a storyboard, and a business Website.

  Online banking application

Designing and developing a web applications The company you are working has secured a contract with a local banking group to develop an ONLINE BANKING APPLICATION using PHP and MySQL.

  Design a dynamic database

Design a dynamic database using Mangodb, html , and php.

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  Implement a web application

Implement a web application called CS320Starter, which is similar to the crowd funding platform Kickstarter where people raise funds for their projects.

  Prepare an ajax enabled web form

Prepare an AJAX enabled web form utilising a ListView control that will allow logged-in staff to list, edit, delete, insert magazine details for magazines from a selected magazine category.

  Create a very simple order system as a web application

Create a very simple Order System as a web application.

  Which of the following jsp expressions is valid

A JSP expression can contain any Java expression that evaluates to a String object, Java object, primitive type, primitive type or Java object

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd