MySQL Connection Test Page - database.html
The plan here is to use a database to store comments, feedback or blog-type text. Visitors can browse these comments and add/edit their own. It is also the start page for SQL tests - starting with a connect and a SELECT php script.
I have a database and I can (have added) add tables and data using phpMyAdmin. The php code is largely taken from the W3C examples
I also started a page on MySQL SELECT.
Connecting to database - connect.php
This is taken by example from the W3C Schools site.
select2.php
The connection code is common(ish) in the two examples above. The ouput is just and echo (to the std output i.e. the screen) of the contents of the table.
Displaying a comment field
I need to create a table for this. This is if I wanted to create an interactive website