473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
1 4867
RedSon
5,000 Expert 4TB
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

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

Similar topics

3
by: Marten van Urk | last post by:
I got the following error in my page Parse error: parse error, unexpected T_ELSE in line 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Club</title>...
6
by: Ian Davies | last post by:
Hello I have found the following script php/java for dynamic menu lists. Where a selection from the first updates (filters items in) the other. I have modified it for my tables. However I am...
4
kestrel
by: kestrel | last post by:
I have some html code that is supposed to be displayed by php echo. But for some reason i keep getting a syntax error, and i cant figure out what is going on. Heres what i have <?php...
4
by: bhunesh | last post by:
hey , i m getting error listed below plz help me /virtualHosts/beta.myiris.com/htdocs/commodities/commd_admin/CRONJOB/new_cronjob/new_mcx.pl: line 14: syntax error near unexpected token...
3
by: SilvaZodiac | last post by:
Hi everyone, I'm still rather new to PHP code, and I have a syntax error. I've tried several different solutions, but it won't fix. It seems to suggest that I need a new bracket somewhere in the...
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
3
paulrajj
by: paulrajj | last post by:
hi to all, i am getting syntax error on my code.. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62 ...
4
by: mmiller | last post by:
I have a pretty limited knowledge of PHP. My scenario is: I want one form to have two (2) submit buttons. I want one button to submit an email to a specific address then redirect to a page, and...
5
maxamis4
by: maxamis4 | last post by:
Hello folks, Learning PHP here and I am using sendmail.php to send an email. I have setup my html contact form and I am using the following to send an email once a confirmation has been made: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.