Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 15-09-2005, 07:18 PM   #1 (permalink)
In The Zone
 
Join Date: Oct 2004
Posts: 437
Default any php programmer around


i have just started php and i have learn many thing from books and may be some web experts help.
i have some problem though
hope it will be solved here ..just have not seen much php discussion here..

problem1)
the user name and password are stored in database table ..the user enter username and password and it is checked against the password and username in tables
now problem is if uname and pass are correct i want user to direct to thier personal profile page...if user can see only his personal profile

how is it done ?

is it making query
select .....from tables where uname=required and pass=" "

or we make separate page for each

are there simple example code in any web site

query 2) does php run in IIS (other than in aphace)
i am unable to make in run in IIS though some books says it can
then how

query 3)
when searching i want to search in certain tables only how it can be done
i want search result from password protected area
how it is done

by the way does phpbb forum run in intranet?any configuration details or intranet or is it same..


thanks for your replies

saha
__________________
be who u r :
Saharika is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-09-2005, 04:47 PM   #2 (permalink)
In The Zone
 
Join Date: Feb 2005
Posts: 347
Default

Quote:
query 2) does php run in IIS (other than in aphace)
i am unable to make in run in IIS though some books says it can then how.

It can run, but you will need the php modules/server for it.

by the way does phpbb forum run in intranet?any configuration details or intranet or is it same..
It is the same.

Edit:techno-Edited this post to make it more legible
valtea is offline  
Old 16-09-2005, 07:18 PM   #3 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: any php programmer around

Quote:
Originally Posted by Saharika
problem1)
the user name and password are stored in database table ..the user enter username and password and it is checked against the password and username in tables
now problem is if uname and pass are correct i want user to direct to thier personal profile page...if user can see only his personal profile
Tip 1: Dont store your passwords in the database in plain text. Use some kind of hashing algorithm to make it secure. Use PHP's md5($string_variable); to generate MD5 hash and save that in the database instead.

As for your query,
Let's say you have a homepage as home.php then you can do something like this.

Code:
if ($username == $database_username && $passwd == $database_passwd)
{
  header('Location: home.php');
  exit();
}
else
{
  header('Location: login.php');
  exit();
}
__________________
- --
http://web.gnuer.org
GNUrag is offline  
 

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by Charan

Advertisement




All times are GMT +5.5. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2