Compleet Newbie Question about creating website account syst

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
cs2501
Forum Newbie
Posts: 1
Joined: Sat May 16, 2009 1:34 am

Compleet Newbie Question about creating website account syst

Post 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
ldougherty
Forum Contributor
Posts: 103
Joined: Sun May 03, 2009 11:39 am

Re: Compleet Newbie Question about creating website account syst

Post 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
l.francis30
Forum Newbie
Posts: 12
Joined: Tue May 19, 2009 11:27 am

Re: Compleet Newbie Question about creating website account syst

Post 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
Post Reply