Solved

Silly if question

Posted on 2002-07-29
2
206 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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.

759 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now