Your browser may not support the features required by impress.js, so you are presented with a simplified version of this presentation.
For the best experience you may consider using the latest Chrome, Safari or Firefox browser.
On tablets and smartphones, you may try switching to the desktop version of this web page.
Databases in Web applications
Database Principles
today:
Building applications with databases
HTTP
Net
Two-tier Architecture
SQL
Three-tier Architecture
on the Web
Old-school server-side
Modern, API-driven
User Interface
Business logic
Data storage
Security
Business logic
Security, validation
Thin client
Reload often
Generate HTML
Mix languages
Rich client
Great usability
Provide an API
Serve more static files
INSERT INTO Candidate VALUES
( 7, "Jane Smith", "1 Abe Ct. Cosham", "(02392) 555-001",
"js@g...com", "1979-01-02", "Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Aenean tincidunt dolor eu
rhoncus.", "y", 5);
SELECT name, phone
FROM Candidate
WHERE coID = 5;
############# file: index.php
<!doctype html>
<html>
<head>
<title>Item list</title>
<script src="js/functions.js"></script>
</head>
<body>
<?php include 'header.php';?>
...
<button onclick="deleteItem('<?php echo $itemNo;?>'">
...
<?php include 'footer.php';?>
</body>
</html>
Desktop
Mobile
Embedded
Web
3-tier arch. advantages
- security
- scalability
- updates
disadvantages
- requires SW on server
- maintenance
- scalability
- complexity
- cost
Web advantages
- cross-platform
- simplicity
- clear network
- updates
- scalability
- popularity, reuse
disadvantages
- public network
- popularity
- statelessness
- testing
- browser
Web UI for Databases
Jo Smith | profile | log out
Candidate interview list
Company | Date ▼ | Result
|
---|
IBM | Jan 20, 2017 | pending...
|
Specsavers | Jan 6, 2017 | rejected: lack of understanding of short-sighted people
|
McDonald's | Dec 5, 2016 | rejected: overqualified
|
BAE Systems | Aug 29, 2016 | rejected: no reason given
|
Next:
DB in Web Apps
Clients