I am building my own blogging website from scratch (instead of using WordPress or Drupal). I have the articles set up and stored in databases and the website runs queries on the databases to display the content.
How do I write a system for users to register with the site, edit personal details and post comments on the articles? I have never done something like this before and my knowledge of PHP and mySQL is quite fresh.
Without any PHP sepcifics.
If you want to do it from scratch a basic approach would be to have a separate table for users and have the table linked from other tables where you need a record to be associated with that user, e.g. have user_id in the posts table to point to the author of the post. Then you'll need a registration form of some kind, pereferably with captcha to guard against spam bots. It is also a common practice to hash passwords before putting them into the database. You will also need to use a session mechanism to keep track of logged in users, I suppose PHP provides some session mechanism. Commons security threats for web applications may be a consideration as well.