Original Post
Alright, my current kludge of a newspost system basically works by writing new posts to a .txt file, which is just included in the index page. I'm currently working on converting this to a MySQL-based system, so as to make individual posts easier to manipulate. I actually have two separate concerns. The first is: my current idea for the SQL system involves echoing the contents of each post in reverse-chronological order every time the main page loads. Is this, well, retarded? I'm basically asking, what is the general convention web developers use for this sort of thing? My second question is: how secure is it to use mysql_connect() on a publicly-accessible page? Rather than typing out your login credentials in the PHP code every time you want to connect to a database, wouldn't it be smarter to incorporate some password hashing, or something? Any ideas on either of these things would be appreciated. I swear I'll contribute some advice of my own to this forum when I actually know things. :)