SHAD Posted February 3, 2011 Posted February 3, 2011 Can anyone help me fix this error with this >> Money :'.number_format($ir['money']).'. The error i am getting is >> Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in / and i can't seem to fix it. print <<<OUT <table width=75% bgcolor=green><tr><td width=100% height=30 align=center bgcolor=green></td></tr></table> <table width=75% border=1 bordercolor=#000000 align=center bgcolor=pink cellpadding=0 cellspacing=0> <table width=75% align=center bgcolor=#bbbbbb> <tr align=center> [b]Money :[/b][b]'.number_format($ir['money']).'[/b] </tr> <tr align=center> <td>[b]Energy{$set['game_energy']}:[/b] {$enperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Will{$set['game_will']}:[/b] {$wiperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Brave{$set['game_brave']}:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Health{$set['game_health']}:[/b] {$hpperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> </tr> <table width=800px border=0 cellpadding=0 cellspacing=0> OUT; Quote
bineye Posted February 3, 2011 Posted February 3, 2011 Your parse error is on line 9. Try changing Money :'.number_format($ir['money']).' to Money : \${$ir['money']} should have the same effect Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.