» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2006, 01:04 PM
trescothick trescothick is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
trescothick is on a distinguished road
Default User Authentication Question

Hello pals,

I'm building a login system to a php site using mysql in dreamweaver and I'd like to forse users to change their pasword the first time they login, so I created a column in the mysql database that flags the user if he had changed the password or not (0 or 1) but since I'm new to php I don't know how to do the foce password change.

Please suggest
Thanks -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-22-2006, 01:05 PM
casper casper is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
casper is on a distinguished road
Default

Trescothick, you have given no code. Anyhow, you can try this

PHP Code:
if($flag == 0) {
forcePasswordChange();
}


Bye for now -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
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

vB 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
Question about combining two DB records into one ASP Table richardson ASP forums and Tips 1 08-29-2006 01:35 PM
user account troubles>>> Mikkel MySQL Forums 1 08-17-2006 09:51 AM
authentication password required tussey PHP Programming and Tips 1 08-02-2006 05:06 PM
creating user authentication system donut PHP Programming and Tips 2 06-30-2006 11:49 AM
DomainMart Proposes Domain Authentication Mechanism outsourcingplans Web Hosting Industry 0 04-07-2006 05:38 PM


All times are GMT. The time now is 10:18 AM.