GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-Jun-2005, 18:57
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road

Unique password and username


Hello! I'm relitvily new to php and mysql so I have a lot of questions. I know how to make a very simple form that you can insert data that goes into tables and can be displayed. In fact I made a cool little guestbook. I can also update and delete data, but that's about all I can do.
I want to make a registeration and login/logout system that checks for a Unique password and username so there are no duplicates. It would proboly be best if someone could redirect me to a tutor site that covers exactly this because I can't find any.
  #2  
Old 07-Jun-2005, 23:11
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Try searching for a MYSQL tutorial to learn how to use the database. Once you learn how the database works it will be easy to do what you need. As for not finding any, in one search on google I found more than I can count. Try again.
__________________

Age is unimportant -- except in cheese
  #3  
Old 07-Jun-2005, 23:20
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road
it's not that I can't use a database, it's that I can't authenticate anything. You didn't give me any help as to how I can make a form registration/log in/log out program at all.
  #4  
Old 08-Jun-2005, 00:31
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 893
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by Snapple
it's not that I can't use a database, it's that I can't authenticate anything. You didn't give me any help as to how I can make a form registration/log in/log out program at all.

Hello Snapple. It just so happens we have available a session password protection script on our forum: Password Protect web pages / sites using PHP and MySQL

In case that seems to complex, the simplest thing you can look at for starters is this User Authentication Tutorial.
After you got the hang of that, you can advance to this and this.
Post any other questions you may have here. Good luck!

Best regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #5  
Old 08-Jun-2005, 14:40
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by Snapple
it's not that I can't use a database, it's that I can't authenticate anything. You didn't give me any help as to how I can make a form registration/log in/log out program at all.

Sorry about that. I wasn't questioning whether you can or can't use the database from a beginner standpoint. I was giving you a suggestion that you may not know enough about using a database yet for authentication, so look for tutorials to help you learn more, as LuciWiz also suggested with
Quote:
Originally Posted by LuziWiz
In case that seems to complex, the simplest thing you can look at for starters is this User Authentication Tutorial.
After you got the hang of that, you can advance to this and this.
A GOOGLE search for "user authentication tutorial mysql" only gave me about 588,000 hits -- are you sure none of them are any good? The first 8 hits looked good to me.
__________________

Age is unimportant -- except in cheese
  #6  
Old 08-Jun-2005, 23:25
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road
Quote:
Originally Posted by WaltP
Sorry about that. I wasn't questioning whether you can or can't use the database from a beginner standpoint. I was giving you a suggestion that you may not know enough about using a database yet for authentication, so look for tutorials to help you learn more, as LuciWiz also suggested with

A GOOGLE search for "user authentication tutorial mysql" only gave me about 588,000 hits -- are you sure none of them are any good? The first 8 hits looked good to me.

Acutally I didn't search under that term. I wasn't sure what term to search for. Thank you.
  #7  
Old 09-Jun-2005, 05:09
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road
Red face

Quote:
Originally Posted by LuciWiz
Hello Snapple. It just so happens we have available a session password protection script on our forum: http://www.gidforums.com/t-887.html

In case that seems to complex, the simplest thing you can look at for starters is this http://www.phpdeveloper.org/section/tutorial/62.
After you got the hang of that, you can advance to http://www.tutorialized.com/tutorial/User-Authentication-Using-PHP/7824 and http://www.zend.com/zend/tut/authentication.php.
Post any other questions you may have here. Good luck!

Best regards,
Lucian

Okay good news! I understand and can do everything in the links you gave me except the script that this site provides. I get stuck here..
$result = mysql_query( $sql, $conn );
I have it as...
$result = mysql_query($sql);
It says there is a phase error either way I do it.
Besides that I can now create a registeration, login, logout, and any other type of page I need for the program. Thank you VERY very much for this. It's now 6:08 am so I'm going to go to bed.
 
 

Recent GIDBlogMeeting the populace by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help wit my source code compiler errors Krandygrl00 C++ Forum 1 06-Jun-2005 08:14
username and passwords Mjkramer21 Web Design Forum 1 21-May-2004 05:25
password protection doria Web Design Forum 2 21-Apr-2004 06:01
Hide password skyloon MySQL / PHP Forum 2 08-Jul-2003 08:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:30.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.