By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Parse error: syntax error, unexpected T_ELSE in /opt/lampp/htdocs/Verify_user3.php o

P: 1
Expand|Select|Wrap|Line Numbers
  1. <?  
  2.   $uname = $_REQUEST['email_id'];
  3.   $pass = $_REQUEST['password'];
  4.  
  5.  
  6.  /*Connecting, selecting database */
  7.   $LogStatus = 0;
  8.    $link = mysql_connect("localhost","root","kushal")
  9.        or die();
  10.  
  11.   mysql_select_db('mysql') or die();
  12.  
  13.     /* Performing SQL query */
  14.   $query  = "select Password from userinfo where Email_id='".$uname."'";
  15.  
  16.   $result = mysql_query($query) or die();
  17.  
  18.     while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
  19.      {
  20.              $passwd = $line['Password'];
  21.             if ($pass == $passwd)
  22.         {
  23.          $LogStatus = 1;   
  24.          }
  25.         }
  26.  
  27.  
  28.  
  29.          if($LogStatus == 1 )
  30.      {
  31.  
  32.          if (!isset($_SESSION['UID']))
  33.           {
  34.             $_SESSION['UID'] = $uname;
  35.            } 
  36.         else
  37.          {
  38.             $_SESSION['UID'] = $uname;
  39.            }
  40.         if ($uname=='support')
  41.         {
  42.           include("Welcomeadmin.php");
  43.           }
  44.           else
  45.           {
  46.                include("Welcome1.php");  
  47.         }
  48.          }
  49.         else
  50.         {
  51.            include("Incorrectpwd.html");  ]
  52.            }
  53.  
  54.     /* Closing connection */
  55.    mysql_close($link); 
  56. ?>
i got a error msg like this:
Parse error: syntax error, unexpected T_ELSE in /opt/lampp/htdocs/Verify_user3.php on line 24

can u help me??
Dec 27 '07 #1
Share this Question
Share on Google+
1 Reply


RedSon
Expert 5K+
P: 5,000
First off, lets try posting to the proper forum. We have a forum titled "PHP" for a reason, lets try to think of that reason and remember it.

Next, when you created a new post did you happen to read the information box directly to the right of your text entry field. Its only about 3cm away, you probably don't even need to turn your head to look at it. It sais to use code tags around your code. They look like this: [CODE=php] code inside the brackets [/code]
Dec 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.