Damagedcity.com Posted August 30, 2011 Posted August 30, 2011 When Theres not any player in Jail or Hospital ..its blanck up there... so i thought ill make this this is ..when no one is in hosp or jail a text is shown For Jail ..add this code after the table ends- </table>"; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For Hospital add this code after the table ends- </table>"; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thank You 1 Quote
Ben Nash Posted September 18, 2011 Posted September 18, 2011 Nice little addon. Might use this :D Quote
Damagedcity.com Posted September 18, 2011 Author Posted September 18, 2011 Thanks actionpacked:D Quote
dippitydawgshyt Posted September 20, 2011 Posted September 20, 2011 Very Nice add on. I added it and I'm using it. Thank you!!!!! Quote
chicka Posted September 20, 2011 Posted September 20, 2011 I am struggling to see how this will work... Given that they both use the variable $q to dictate the amount and neither has a $q associated with them directly, then if you add both, they will display the same number even if jail and hospital numbers vary. For an example... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and then, after table (As you have it) if you had this, it would not work properly: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. See the problem? If 2 people were in hospital and none were in jail, it wouldn't show either as the overall num_rows of $q would be 2. As you have not posted any $q variable, I can only assume they are interlinked and for that reason, this will not work right. A working example would be like: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That will work much better!! 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.