Hey there. I'm just starting to learn PHP and MySQL and was wondering if someone could help me out a little bit.
I'm starting with a basic project. What I envision is a login system with preset username/passwords. For instance, I set up say 7 usernames and assign 'password' as the password for each. Once they log in I'd like them to be able to change their password, so I believe this is the reason that I would need a databse for the username/passwords.
The second piece of this project is what can be described as a kind of "message board." A page within the project (say post.php) will have a pull down menu of a few different categories followed by a window to input text. Once the user inputs text, I'd like for the username to be associated with a certain label/name (different than username) and for php to post the text in for instance (home.php). home.php would have a table with different headers (the categories from the pulldown menu) that has label/name, text, time/date.
I have all the html (forms etc) and preliminary php done (some includes, a little bit of code here and there) but now I'm stuck trying to get a database table and trying to write just a basic login script that checks the database against user input and then of course how I would take the text input from post.php thrown into the corresponding table on home.php.
I've tried to look for some sample code to play around with as well as read up on how this stuff works, but it just plain confuses me. All the login scripts I've found go into much greater detail than I need. This is just a "startup" project if you will. Any help would be much appreciated. Thanks!