Re: Request a PHP Tutorial

Posted 22 January 2008 - 11:54 AM

Ok, I personally use Namo Web Editor and it is very simple to create a PHP file and you can edit it like a normal document. Now...after saying that, you will see (or at least in my web editor) I will see a script tag with a question mark telling me what php tags are embedded in the php page. I presume it is the same in Dreamweaver but as I haven't used it for a while, I wouldn't know....

I create my php pages first in notepad and then save them with a .php extension and then drag them over into my web editor and there I use it to add different things to it. My document is surrounded in <html> tags with small bits of php code in it...

Now...for php I don't know if this is what you are asking but to make a pure php page the tages should be

<? you stuff here ?>

If you want to have a login script I would download this one that I got it is called vAuthenticate...it is free and I just modified it to fit with my MySQL database and so that I could customize my own login pages...

Re: Request a PHP Tutorial

Posted 25 February 2008 - 11:04 AM

Hey, I know this post is over a month old, but I wanted to see if you were still having questions. Building basic user authentication systems is pretty easy. The best way to do that is to set up a mysql database for the username and password. When logging in, just take in the username and password from the form, and check it against the mysql database. If the login is successful you can set some session variables for use on the site. If you have pages that you want protected for members only, just do a session check. Remember that to access the variables you must start the session on each accessing page.

Re: Request a PHP Tutorial

Posted 03 April 2008 - 09:35 PM

Hiya,

I am currently learning PHP and MySQL as I have a website (virtual pet community) in which I paid for a script then was left with no support so had to learn it myself. lol As it turns out I have become addicted to PHP and MySQL and love the flexibility and potential it offers my website.

My website has a config, global and header document which I believe contain global settings (hence the name lol).

There are a few projects I am working on in which I want to be able to indetify a user who is logged in.

For example ... I am creating message boards and want to be able to automatically identify the user instead of having to ask them to fill in their name. I would also like to be able to set up an online user list that displays the names of all those online. (I currently have an online list that is not ideal and I cant seem to change it)

I know that the members have a ID number and then that is somehow linked to the username.

I expect this may be too tricky to ask but would someone be able to teach me how to extract this information so I can use it on my message boards etc?

I think there is already settings for the $userid which I see is commonly used to idetify users but when ever I have tried using it I cant seem to get the same result.