View Single Post
Old Jun 22nd, 2005, 12:52 AM   #5
foxcity911
Programmer
 
Join Date: Jun 2005
Location: Queensland
Posts: 37
Rep Power: 0 foxcity911 is on a distinguished road
Lightbulb switch statements?

i just came out of my brain death and i thought "maybe a switch statement would work". do u think it could work? heres what ive tried.
switch ($team){
 case ($team = "Adelaide Crows"):
 echo ("<TR><TD><IMG SRC = 'teams\crows.gif'></TR></TD>");
im fairly ignorant when it comes to switch statements though. how would i add a second case in there. eg i would want it to look like:

switch ($team){
 case ($team = "Adelaide Crows"):
 echo ("<TR><TD><IMG SRC = 'teams\crows.gif'></TR></TD>");
break: 
case ($team = "Brisbane Lions"):
 echo ("<TR><TD><IMG SRC = 'teams\lions.gif'></TR></TD>");
etc.

is there a way i can make this switch statement work like this? any input from anyone is very welcome.
thanks
foxcity911 is offline   Reply With Quote