realmoflegends Posted June 2, 2015 Posted June 2, 2015 Hey guys, Sorta stuck on this section of code here. I've ran through almost every iteration of this. Trying to set this up so only if a certain variable is more 0 does the row actually get printed on the screen, starting on line 12. Just get a white screen. Error message is not helpful at all: Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING on line <b>17 I've changed and added many single and double quotes, no dice. echo " <div style='text-align:center;color:limegreen;font-weight:bold;'><div id='clock'></div></div><br /> <tr style='background:#000000;'> <th>Objective</th> <th>Current Amount/Needed</th> </tr> <tr style='background:#C0C0C0;'> <td>{$mission['task_one']}</td> <td>".number_format($minfo['task_one_amount'])."</td> <td>".number_format($mission['task_one_amount'])."</td> </tr>"; if($minfo['task_two_amount'] > 0) { echo " <tr style='background:#ececec;'> <td>{$mission['task_two']}</td> <td>'.number_format($minfo["task_two_amount"]).'</td> <td>'.number_format($mission["task_two_amount"]).'</td> </tr>"; } if($minfo['task_three_amount'] > 0) { echo " <tr style='background:#C0C0C0;'> <td>{$mission['task_three']}</td> <td>'.number_format($minfo["task_three_amount"]).'</td> <td>'.number_format($mission["task_three_amount"]).'</td> </tr>"; Quote
W3Theory || Peter Posted June 2, 2015 Posted June 2, 2015 (edited) '.number_format($mission["task_two_amount"]).' ---- Take a look at that. Edited June 2, 2015 by W3Theory || Peter Quote
SRB Posted June 2, 2015 Posted June 2, 2015 echo "<tr style='background:#ececec;'> <td>{$mission['task_two']}</td> <td>'.number_format($minfo["task_two_amount"]).'</td> <td>'.number_format($mission["task_two_amount"]).'</td> </tr>"; to echo "<tr style='background:#ececec;'> <td>{$mission['task_two']}</td> <td>".number_format($minfo['task_two_amount'])."</td> <td>".number_format($mission['task_two_amount'])."</td> </tr>"; Etc Quote
realmoflegends Posted June 2, 2015 Author Posted June 2, 2015 Geez, I probably tried everything but that. Thanks all. Quote
Zettieee Posted June 2, 2015 Posted June 2, 2015 You have my skype Derek. should of asked me :) Quote
realmoflegends Posted June 2, 2015 Author Posted June 2, 2015 :) Your Skype shows Away status, but then that might not always mean anything. Quote
Zettieee Posted June 2, 2015 Posted June 2, 2015 I do that so I don't get the popups and mess with my photoshop :x 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.