In this tutorial, we create a basic commenting system consisting of a form with two input fields: name and comment.

The statement below would require that all 4 fields of the specified row be passed to the processing script.

Here we also realize the value of including the automatically incremented id field to specify a unique identifier for each row of the birthdays table.

If the wish is edited, the value of the hidden field must change to the ID of the wish.

To create this hidden field, add the following line to the top of the Now you need to update the code that verifies the input data and inserts the wish to the database.

The current code does not distinguish between creating a new wish case and updating an existing one. My SQL users: Click here to download the source code that reflects the project state after the lesson is completed.

In the current implementation, a new record is always added to the database because the code does not verify the value of the wish ID transferred from the input form. Oracle Database users: Click here to download the source code that reflects the project state after the lesson is completed.

The current document is a part of the Creating a CRUD Application in the Net Beans IDE for PHP tutorial.

My SQL users: Click here to download the source code that reflects the project state after the previous lesson is completed.

The second sends a request having a comment_id so as to identify the specific comment in the database by that id and delete it. If you have any worries or comments, just drop them in the comments section below.

For the server code, open and paste the following code in it: This brings us to the end of this tutorial.

Otherwise, if the Server Request method is GET and the $_GET array contains an element with the key "wish ID", the values are retrieved from the database by the function get_wish_by_wish_id.