Solved

Silly if question

Posted on 2002-07-29
2
211 Views
Last Modified: 2012-05-04
hiya

if ( $inf["sex"] == 'F' ) {
   echo "<font color = red>";
   echo $inf["lname"].", ".$inf["fname"]."<br>";
   echo "</font>";
}

else (
   echo "<font color = blue>";
   echo $inf["lname"].", ".$inf["fname"]."<br>";
   echo "</font>";
}

if i comment out the else section, only females show up in red, however in this setup with the else i get: Parse error: parse error, unexpected T_ECHO in /ua/jon/public_html/editscores.php on line 53



any idea to fix would be greatly appreciated!


0
Comment
Question by:weinrj
2 Comments
 
LVL 1

Accepted Solution

by:
majorspank earned 50 total points
ID: 7186418
You have a round bracket '(' instead of a curly bracket '}'
0
 

Author Comment

by:weinrj
ID: 7186427
BLARG!!!!!!!!!!!!!!!!!!!!!

i knew it!!  it was something very very very very very dumb!!!

dunno how i managed to pull that off, but i guess at 1280x1024 it looked the same!!!

lol
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question