How Web Database Architectures Work CPS181s April 8, 2003
search.html
Web Database Architectures A user’s Web browser issues an HTTP request. The Web Server receives the request for results.php and passes it to the PHP engine for processing The PHP engine opens a connection to the MySQL DBMS and sends the query. The MySQL DBMS process the query and sends the results back to the PHP engine. The PHP engine formats the results in HTML and sends it to the Web Server The Web Servers passes the HTML page back to the user’s browser
results.php
results.php (cont.)
Search Results
Write to Database
Write to Database HTML
insert_book.php
Access Log
Access Log (cont.)