Page 1 of 1

Compleet Newbie Question about creating website account syst

Posted: Sat May 16, 2009 1:47 am
by cs2501
Hi there,

I have a website that has flash movies. I am wanting to implement a user account system so visitors can log in and leave comments for the flash movies, similar the way youtube and other flash movie hosting sites have. I also would like to create a user forum that uses the same user name and passwords. I am wondering if there is any specific PHP & MySQL course that would bring me to that level?

Currently I have no PHP & MySQL expirence. I mostly know ac3, java, and html

Thanks :D

Re: Compleet Newbie Question about creating website account syst

Posted: Sat May 16, 2009 12:38 pm
by ldougherty
Creating user logins is actually not that difficult.

The basics..

- create a mySQL database with username and password information.

- check if userloggedin session variable exists.

- if it exists then there is nothing to do as the user is logged in

- if it does not exist then show a form that requests username/password

- run a query on the database that searches to see if the username supplied exists in the database

- if it doesn't exist then state no such user exists.

- if it does exist check the pw

- if the pw is no good then state pw is no good

- if the pw is good create a session variable userloggedin is true

- you will also need a logout box that destroys the session

There are also a bunch of tutorials online in regards to doing this, just search Google for PHP log in system

Re: Compleet Newbie Question about creating website account syst

Posted: Mon May 25, 2009 4:01 am
by l.francis30
You can get a lot of PHP source online..
But if you want learn the basic you can go to w3schools.com
You need to learn about session for the login/logout purpose