Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
 
Old October 29th, 2006, 06:00 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with login?

hi,

i have a problem with script login.php (i can not enter my login web)
script login :
<?php

   $id_conn = mysql_connect ("localhost", "root", "indosatm3");
   mysql_select_db("wei", $id_conn);
   $result = mysql_query("select statusValid from produsen where cmpy_id='$userid'", $id_conn);

   if(mysql_num_rows($result))
      $status = mysql_result($result, 0, 0);


   if (($status == 'valid') || ($pass1=='admin')) {
        include "class//class_user.php";
        $user = new User;
          $user->valid_lg($userid, $pass1, $sesi);

   }
   else
   {
       include "notValid.php";
   }
?>

i have build user: admin password: admin but i can't enter?

need help?



 
Old November 2nd, 2006, 01:37 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hai,
what is the error you are getting?


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Problem dpandit BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 3 March 17th, 2008 02:47 PM
Login Problem moonsrisun ASP.NET 2.0 Professional 1 May 24th, 2007 11:48 PM
Login Problem moonsrisun ASP.NET 2.0 Basics 0 May 24th, 2007 01:33 AM
Login Problem sumith ASP.NET 1.0 and 1.1 Professional 3 March 11th, 2007 10:57 PM
Problem with Login -- HELP chiefg BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 3rd, 2004 04:26 AM





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