Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Silly if question

Posted on 2002-07-29
2
Medium Priority
?
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
majorspank earned 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

730 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