Lec 06 MySQL in PHP PDF
Lec 06 MySQL in PHP PDF
• You can save a lot of time and work through including files —
Just store a block of code in a separate file and include it
wherever you want using the include() statements instead of
typing the entire block of code multiple times.
mysqli_connect.php
The include statement
• Example of
showing
database data
using the SELECT
statement in SQL
through PHP:
Inserting Database Data
Inserting Database Data
• Here's an example,
which insert a new row
to the tbl_products table
by specifying values for
the productID,
productName and stocks
fields.