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

homelectshws
D2Lbreeze (snow day)

mysqli-basics
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.      

homelectshws
D2Lbreeze (snow day)


©2017, Ian Barland, Radford University
Last modified 2017.Nov.01 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.