PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've made a simple guestbook, with learning scripts from around the net Heres the index.php which displays the title of all entries that are added. By default it displays the oldest at the top, but how would i make it display the newest entry at the top of the page?
My coding isnt up to standards, its very messy and i dont have any comments in there at the moment, if you want to modify it for me by sticking comment blocks in then i'd be grateful
What Nay is meaning is that heredoc ( http://php.net/manual/en/language.types ... ax.heredoc ) is another way to print out the data to the screen.
That makes the code abit more readable, but it has nothing to do with the actual issue. Mentioning it so you don't get confused.