Go Back   Novahq.net Forum > Computers > Web design and Programming

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-10-2005, 02:28 PM
ziprock is offline ziprock
Registered User

Join Date: Sep 2004
Posts: 62

php.mysql login..

i want to be able to login to my site. i have set up my regitration form.. that part was easy. now i have somthing you could call an account, with an sql table that includes my username, password, rank, and email. but um.. how do i login?

im guessing a simple forum will do? using this query
PHP Code:
$query = ("SELECT * FROM `users` WHERE username='".$username."' AND password='".$password."'") or die("MySQL Login Error: ".mysql_error()); 
my biggest question is after im logged in.. Ziprock being set as my $username variable and my password set to $password how will i get my code to remember the information i put in on login.php so when i go to pages it will remember me
__________________


My Design -> http://www.killerz4hire.us.tt
If you need a template or a web site set up for you email me!

Last edited by ziprock; 08-10-2005 at 02:51 PM.
Reply With Quote
  #2  
Old 08-10-2005, 02:51 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,920

check this out: http://www.phphq.net/scripts.php?p=code-bits&id=5

pretty basic but it's a start
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 08-10-2005, 03:45 PM
ziprock is offline ziprock
Registered User

Join Date: Sep 2004
Posts: 62

id check the code on that and run it somwhere.

for some reason i cant figure this out, ive downloaded login scripts and edited them in places so that they should work for me but same thing always happens
__________________


My Design -> http://www.killerz4hire.us.tt
If you need a template or a web site set up for you email me!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and mySql atholon phphq.Net Forums 1 07-16-2008 01:25 PM
MySQL Login Webviper2006 Web design and Programming 6 02-20-2006 11:16 PM
PHP/MySQL Jeff Web design and Programming 7 11-30-2005 12:18 PM
PHP, MySQL REGULATOR Web design and Programming 7 11-22-2003 11:53 AM
php and mysql XenoMorpH Web design and Programming 4 04-01-2003 06:14 AM


All times are GMT -5. The time now is 05:22 AM.




Powered by vBulletin®