I am wondering if I could get some help with two questions.
They should be easy enough to answer, but as I am still sort of new to PHP, I need some help.
Okay, I have set up a news system for my website (Not uploaded yet, currently running on localhost with Apache Server).
I got it to work all fine and dandy, but there are a few things I want to edit about it.
1: When news updates are submitted, the new news posts appear underneath the old news posts. So, say if I had posted 20 news posts on my page, the viewer would have to scroll right down to the bottom of the page to read the 'latest' news update. How would I fix this so that the latest updates are always on the top of the page?
2: This is part of the code in my scripts that gets the news from the database and displays it on the web page:
echo $news['title'] . $news['name'] . "<br>";
echo $news['date'] . "<br>";
echo $news['text'] . "<br><br>";
Say I wanted to make the ['title'] a large font, a color and bold and the ['name'] to be a much smaller font and a different color. How would I do this?
I have tried playing with the code to edit the fonts myself, but it always returns errors. Which is the RIGHT way to do it?
Thank you for reading.
Any help would be greatly appreciated. 🙂