Problem - I've created a DB Connection, I've queried the DB, and I've turned the results into an associative array. Displaying the SQL Data using PHP is the trouble I'm having. I've managed to display it in a basic way, however my aim is for this information to display as a 'News Column' down the side of the page, and therefore I need the data to be inserted into Divs for me to be able to manipulate.
Attempt thus far - As one can see below, the presentation of this attempt to display my data is cringeworthy. However in this way I did manage to distinguish the types of headings for each piece of data.
echo "<h2>" . $row["title"]. "</h2><h3>Date: " . $row["dateTime"]. "</h3><h4>Passage: " . $row["passage"]. "</h4><br>";
HTML For Current Webpage:
https://i.sstatic.net/Fb26J.png (What my 'News Column' looks like) https://i.sstatic.net/rlRB4.png (My HTML Code I want Data to be inputted into) - The aim is for someone to be able to complete this form (https://i.sstatic.net/fVA1g.png) and the data to go into the DB (done this), and display in the column with the 'Title' appearing in the right place, same with 'Date' and finally with the 'Passage'.
What I've Found Online:
I dislike wasting people's time so I've spent a few hours searching online. Thus far I've found mostly people creating HTML Tables with their SQL Data, which is great and all, however I've not found anyone who's using Divs/Headings/Paragraphs etc...
My CSS:
I have a CSS File which I'm retrieving (or whatever the term is) via HTML Code which is working (so far).