RU beehive logo ITEC dept promo banner
ITEC 325
2018fall
ibarland

Interacting with a Database
Ullman chapter 12

Quick-links:
Example program connecting to a MySQL database;
and an Example program connecting to an oracle database.


youtube (8m34s):

This chapter will focus on accessing MySql database tables from PHP programs. In DB1, you worked with an Oracle database. For this course, we'll show examples using MySql, for two shallow reasons:


SQL queries from PHP

Quick-links:
Example program connecting to a MySQL database;
and an Example program connecting to an oracle database.

no video: We talked about, in class, the basics of using php to create a string holding your DB query.

1 Well, in this case, there are two other minor differences: to create the connection call “new mysqli()” instead of “mysqli_connect()”; and to check for errors look at the (string) field “$connect->connect_error” instead of checking for $connect being null.      

logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.