parse error

From: Date: Thu, 26 Oct 2000 21:26:19 +0000
Subject: parse error
Groups: php.db 
Request: Send a blank email to php-db+get-3971@lists.php.net to get a copy of this message
Hello all: Thanks to all who replied to my query about having form that works off of one page...i made something using switch case statements... Now when I try to output, I get a parse error...the ternary operator is what is giving me the parse error (the line in function that starts echo...) Any ideas why it is crapping out?! Thanks!! <? function row_color($cnt,$even,$odd) { echo($cnt%2); ? "<tr bgcolor=\"$odd\">" : "<tr bgcolor="$even\">"; } ?> <? $cnt=0; ?> <? while ($r = db_fetch_array($qwery)) { ?> <? row_color($cnt++,"ECE9E5","BCBCAD"); ?> <TD WIDTH=31> <CENTER><INPUT TYPE=radio NAME=bench_selection VALUE="<? pv($r["BenchGLEnum"]) ?>"></CENTER> </TD> <TD WIDTH=72> <P><? pv($r["BenchGLEnum"]) ?></P> </TD> <TD> <P>The student will <? pv($r["Bench_txt"]) ?></P> </TD> </TR> <? } ?> Luis __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.db (#3971) next »