Rambacal Lab Act3
Rambacal Lab Act3
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
- 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.
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