Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

  #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

  #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?



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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.