0% found this document useful (0 votes)
12 views9 pages

Rambacal Lab Act3

Uploaded by

Lawrence Novero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views9 pages

Rambacal Lab Act3

Uploaded by

Lawrence Novero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Lyceum of the Philippines University

Governor's Drive, Manggahan, Gen. Trias City, Cavite

College of Engineering, Computer Studies and


Architecture

Laboratory Activity No. 3

Laboratory Activity 3: Create, Read,


Update, and Delete Using PHP and
MySQL

Rambacal, Javier Vergel A.


CpE 201
DBMN01E
March 28, 2024
April 4, 2024

Paolo Roberto O. Lozada, Meng-CpE


Instructor
INTRODUCTION:

This aims to familiarize and have a better understanding the basic fundamentals
to store information using MySQL and PHP creating a C.R.U.D. in short for create, read,
update, and delete. It helps us to store information more effectively and efficiently.
These principles are the very foundation of how things work. By knowing these
concepts, we can really appreciate on how data management works for our daily life in
this modern age

MATERIALS AND METHODS:

- XAMPP
- MySQL WORKBENCH
- Notepad++
- Notepad

EXPERIMENT 1:

Config
Establish a connection between your PHP code
and the database first.
The webpage and the database where the
webpage's data will be stored are connected
using the following code.
Create
Table creation or the creation of new tables is
the first PHP CRUD operation, called Create.
records into a table that already exists. You
must first develop the webpage's code in
order to accomplish it. add a record to the
database.
View
As the name implies, the second operation,
"Read," or “View” is used to show or read the
data that is currently on hand in the database.
You must first develop a page that shows the
records from the table in order to complete the
procedure.
Update
Table creation or the creation of new tables
is the first PHP CRUD operation, called
Create. records into a table that already
exists. You must first develop the webpage's
code in order to accomplish it. add a record
to the database.
Delete
erase, the last CRUD action, is used to, as its
name implies, erase a current table or
entry. You have to make a page where you may
select the data entry in order to carry out this
procedure that you wish the database to be
cleared of procedure.
OBSERVATION AND DATA:
In C.R.U.D is an essential operation to create our own data collection to store the information.
We need to keep in mind, when it comes to coding it is crucial to validation must be added at the
moment of creation when it comes to coding to minimize errors that may arise later on when
debugging the code. It is important to note that we need to know how the code functions is
necessary in order to comprehend how data is saved in our data collection.

ANALYSIS AND DISCUSSION:

While writing a code, make sure it is easy to understand for both you and the user to enter
data. This is because we don't want users to be confused about where to enter data or what to
enter. Additionally, we need to keep in mind as times goes by the data will grow more and more
complex. Thus, our code's flexibility and optimization are essential. As the complexity of the data
increases, so too must our capacity to analyze the code.

CONCLUSION:

In conclusion, C.R.U.D is essential for making a good data table for our data collecting. It
has been very resilient over the past few years. It helps the beginners to understand the basic
fundamentals on how the webpages works. By knowing these concepts, we can read how a
simple code’s work that can improve later on in life. In order to optimize the code and debug it
effectively, we need to understand how the data is formed. This allows us to establish a problem-
solving attitude that will enable us to debug the code in a matter of seconds.
REFERENCE:
https://www.tutorialrepublic.com/php-tutorial/php-mysql-crud-application.php

You might also like