CSC 409 Group 1 Project
CSC 409 Group 1 Project
In a full stack web development, there are three layers. They are the front-end, back-end (i.e.
the server-side) and the database. These are all considered a part of the full stack web
development tools. The front-end is where the user interacts with the system. The backend is
where the programming of the website is done.
Server side technology are a set of tools and programming languages that are used to design,
build and maintain server side operations of a web application. Examples of server side
programming languages include; PHP, JavaScript, Perl, Python, Ruby and Java. While
example of frameworks for server side programming includes; NodeJS, Django, Flask,
Express, Ruby on Rails, ASP.NET, SpringBoot etc.
Data within the most common types of databases in operation today is typically modeled in
rows and columns in a series of tables to make processing and data querying efficient. The
data can then be easily accessed, managed, modified, updated, controlled, and organized.
Most databases use structured query language (SQL) for writing and querying data.
Examples of SQL database includes; Oracle 12c, MySQL, MS SQL Server, PostgreSQL,
MongoDB, MariaDB, DB2, SAP HANA etc.
For this project, we are using PHP as the server side programming language, and the MySQL
database as the database tool.
2.0. Introduction to PHP and MySQL web development
2.1. What is PHP?
PHP originally stood for Personal Home Page, but was changed in line with the GNU
recursive naming convention (GNU means Gnu’s Not Unix) and now stands for PHP
Hypertext Preprocessor.
PHP is a server-side scripting language designed specifically for the web. Within an
HTML page, you can embed PHP code that will be executed each time the page is
visited. The PHP code is interpreted at the Web servers and generates HTML or other
output that the visitor will see.
MySQL is a very fast, robust, relational database management system (RDBMS). The
MySQL server controls access to your data to ensure that multiple users can work with it
concurrently, to provide fast access to it, and ensures that only authorized users can
obtain access. Hence, MySQL is a multi-user, multi-threaded server. It uses SQL
(structured Query Language), which is the standard query language worldwide. MySQL
is now available under an Open source license, but commercial licenses are also available
if required.
This PHP code shows the query of the INSERT statement from the MySQL query
statements;
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Sending messages
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
// Close connection
$conn->close();
?>
REFERENCES
Welling, L., & Thompson, L. (2003). PHP and MySQL Web Development (2 nd ed.). Sams
Publishing