Lab Manual 05 CSE 406 Integrated Design Project II
Lab Manual 05 CSE 406 Integrated Design Project II
2 Database Design
Database design is the organization of data according to a database model. The designer deter-
mines what data must be stored and how the data elements interrelate. With this information,
they can begin to fit the data to the database model. Database management system manages
the data accordingly.Database design involves classifying data and identifying interrelation-
ships. This theoretical representation of the data is called an ontology. The ontology is the
theory behind the database’s design.
2.1 ER Diagram
Database designs also include ER (entity-relationship model) diagrams. An ER diagram is a
diagram that helps to design databases in an efficient way. Attributes in ER diagrams are
usually modeled as an oval with the name of the attribute, linked to the entity or relationship
that contains the attribute. ER models are commonly used in information system design; for
example, they are used to describe information requirements and / or the types of information
to be stored in the database during the conceptual structure design phase.
Figure 1: Caption
2. Click the Download button for the Windows version of XAMPP and save the file on your
computer.
6. Use the default installed location. (Or choose another folder to install the software in the
“Select a folder” field.)
Figure 2
5. Change the number 80 for another TCP/IP port number that isn’t in use. For instance,
you can try port 81. (After the change, the line should read: Listen 81.)
Figure 3
7. Click the Start button on Apache from the XAMPP Control Panel.
Once you complete the steps, the Apache server should run without issues on the new TCP/IP
port specified. The only caveat with this configuration is that you’ll need to append the TCP/IP
port number on the address whenever you want to connect to your website. For example, to
access the Apache server on the web browser, you will need to type: “localhost:81/dashboard”
instead of “localhost/dashboard.”
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
$conn->close();
?>
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$conn->close();
?>
// CREATE CONNECTION
$conn = new mysqli($servername,
$username, $password, $databasename);
// SQL QUERY
$query = "SELECT * FROM ‘Student Details‘;";
$conn->close();
?>
10 Policy
Copying from internet, classmate, seniors, or from any other source is strongly prohibited.
100% marks will be deducted if any such copying is detected.