Lamez Posted December 15, 2008 Share Posted December 15, 2008 I cannot find the error in these lines, can you? here is the error: Parse error: syntax error, unexpected '[', expecting ',' or ';' in /var/www/krazypicks/user/foot/index.php on line 49 <td colspan="2" align="center" valign="top"><?php echo f['rank_a']." ".$team_a."(".$f['rec_a'].")"; ?></td> <td colspan="2" align="center" valign="top"><?php echo f['rank_b']." ".$team_b."(".$f['rec_b'].")"; ?></td> Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/ Share on other sites More sharing options...
shlumph Posted December 15, 2008 Share Posted December 15, 2008 Has to be a different line, don't see an error either. Could you post 2 lines above and below this as well? All in one code segment Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/#findComment-715569 Share on other sites More sharing options...
Lamez Posted December 15, 2008 Author Share Posted December 15, 2008 <table width="100%" border="0"> <tr> <td width="7%">Bowl Name: </td> <td width="47%"><?php echo $f['name']; ?> <?php $name = $f['name']; ?> <input name="name-<?php echo $num; ?>" type="hidden" id="name-<?php echo $num; ?>" value="<?php echo $name; ?>" /></td> <td width="7%">Point Value: </td> <td width="39%"><?php echo $f['pnt_val']; ?></td> </tr> <tr> <td colspan="2" align="center" valign="top"><img alt="<?php $team_a; ?>" src="<?php echo $img_a; ?>" border="0" /></td> <td colspan="2" align="center" valign="top"><img alt="<?php $team_b; ?>" src="<?php echo $img_b; ?>" border="0" /></td> </tr> <tr> <td colspan="2" align="center" valign="top"><?php echo f['rank_a']." ".$team_a."(".$f['rec_a'].")"; ?></td> <td colspan="2" align="center" valign="top"><?php echo f['rank_b']." ".$team_b."(".$f['rec_b'].")"; ?></td> </tr> <tr> <td colspan="2" align="center" valign="top"><input name="team-<?php echo $num; ?>" type="radio" value="<?php echo $team_a; ?>" checked /></td> <td colspan="2" align="center" valign="top"><input name="team-<?php echo $num; ?>" type="radio" value="<?php echo $team_b; ?>" /></td> </tr> </table> Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/#findComment-715580 Share on other sites More sharing options...
xtopolis Posted December 15, 2008 Share Posted December 15, 2008 Shouldn't f['rank_a'] and f['rank_b'] have $ in front of them? $f['rank_a'] $f['rank_b'] ? Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/#findComment-715583 Share on other sites More sharing options...
Lamez Posted December 15, 2008 Author Share Posted December 15, 2008 ya, I caught that before I went to bed, I was so happy. Well in fact my dad caught it, and it does not know PHP. Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/#findComment-715697 Share on other sites More sharing options...
shlumph Posted December 18, 2008 Share Posted December 18, 2008 LOL - can't believe I didn't see that either. I notice that when looking on the monitor, your brain fixes spelling/grammar mistakes as well. Opposed to printing it out onto paper. Link to comment https://forums.phpfreaks.com/topic/136999-solved-need-new-eyes/#findComment-718844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.