Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 29th, 2007, 08:08 PM
Registered User
 
Join Date: May 2007
Location: , , Singapore.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 12 loginin issue

hi guys i need some help here.I'm very new to php-MySQL database driven website as i'm a student but have no choice venture to this field(starting to like it though) so can explain to me in a simpler way okok tnx alot guy

my problem is dat i was trying to c the efect of chapter 12 codes for user_account and admin _account. its all work fine except for this problem. I'm unable to log-in myself in login.php even when i already put in a few username account into my database for testing. it will keep saying invalid username/password. this is the same when i try to login at the admin area. i dint modify the code downloaded abit at all. so i guess mux be some error in the code?? but i search thru thiss forum and seems lyk i'm the 1st case to face this issue.

jux another qn...so if i'm to modify to suits my project aim, i need to allow users to log_out...is there anybody able to guide me on this??


please advice and tnx b4hand its will be really appreciated.

Reply With Quote
  #2 (permalink)  
Old September 7th, 2007, 12:01 AM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Create a page called logout.php

<?php
session_start();
session_unset();
session_destroy();

header( 'Location: index.php' ) ;

?>

link it to admin_area.php

Reply With Quote
  #3 (permalink)  
Old December 27th, 2007, 01:11 PM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did this logout.php fix the problem? If so how exactly did you link it?

Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM
session_start issue (Chapter 12) preston2003 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 7 April 15th, 2005 03:09 AM



All times are GMT -4. The time now is 03:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.