seany123 Posted October 6, 2008 Share Posted October 6, 2008 I just a little bit of help on how to echo this table. <?php if ($player->rm <= 0) echo; <table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000"> <tr> <td align="center" class="style5"><strong>Upgrade</strong></td> </tr> </table> <table width="650" border="0"> <tr> <td width="614"><table width="646" border="1"> <tr> <td colspan="3" class="style5"><div align="center">You are not a Respected Mobster!!! </div></td> </tr> <tr> <td colspan="3" class="style5"><div align="center"> <p>By not being a respected mobster you are missing out on tons of advantages and losing out on the competition!<br> these are just a few advantages you will receive when becoming a Respected member:</p> <p align="center">$100,000.<br> 150 Points.<br> Doubled bank interest.<br> X2 Energy, Nerve and Awake refill speed.<br> Fastest Support.<br> Access to ALL new updates. </p> <p align="center"><br> </p> </div></td> </tr> </table> <div align="center" class="style5"> <div align="center">For all these update it only costs $3 Per month (The payment is a one off payment. non-subscription)<br> <br> UPGRADE<br> </div> <div align="left"><br> </div> </div> </td> </tr> </table> } ?> Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/ Share on other sites More sharing options...
trecool999 Posted October 6, 2008 Share Posted October 6, 2008 <?php if ($player->rm <= 0) { ?> <table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000"> <tr> <td align="center" class="style5"><strong>Upgrade</strong></td> </tr> </table> <table width="650" border="0"> <tr> <td width="614"><table width="646" border="1"> <tr> <td colspan="3" class="style5"><div align="center">You are not a Respected Mobster!!! </div></td> </tr> <tr> <td colspan="3" class="style5"><div align="center"> <p>By not being a respected mobster you are missing out on tons of advantages and losing out on the competition!<br> these are just a few advantages you will receive when becoming a Respected member:</p> <p align="center">$100,000.<br> 150 Points.<br> Doubled bank interest.<br> X2 Energy, Nerve and Awake refill speed.<br> Fastest Support.<br> Access to ALL new updates. </p> <p align="center"><br> </p> </div></td> </tr> </table> <div align="center" class="style5"> <div align="center">For all these update it only costs $3 Per month (The payment is a one off payment. non-subscription)<br> <br> UPGRADE<br> </div> <div align="left"><br> </div> </div> </td> </tr> </table> <?php } ?> No need for the echo as anything outside of the PHP gets written anyway. Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/#findComment-658285 Share on other sites More sharing options...
seany123 Posted October 6, 2008 Author Share Posted October 6, 2008 tried that and got a error saying unexpected } here: <?php } ?> also im wanting it so that if the $player rm = 0 then this displays, if rm is 1 then it doesnt Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/#findComment-658290 Share on other sites More sharing options...
revraz Posted October 6, 2008 Share Posted October 6, 2008 Then you didn't open it up at the top as he showed you. <?php if ($player->rm <= 0) { <-------------- ?> Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/#findComment-658294 Share on other sites More sharing options...
seany123 Posted October 6, 2008 Author Share Posted October 6, 2008 yeah that works great! i just forgot to put in { thankyou for all help. Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/#findComment-658305 Share on other sites More sharing options...
trecool999 Posted October 6, 2008 Share Posted October 6, 2008 No problems. It's nice to be back and not be the one asking all the questions . Link to comment https://forums.phpfreaks.com/topic/127287-echoing-tables/#findComment-658308 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.