seany123 Posted April 14, 2009 Share Posted April 14, 2009 <td width="80%" title="<?= $english_format_number = number_format($player->energy);?> / <?= $english_format_number = number_format($player->maxenergy);?> [<?=$energypercent?>]" height="19"> i tried this.. echo"<td width=\"80%\" title=\".$english_format_number = number_format($player->nerve);.\" / \".$english_format_number = number_format($player->maxnerve);. \"[\".$nervepercent;.\"]\"height= \"19\" >\n"; but it didnt work. anyone give me a hand? Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/ Share on other sites More sharing options...
Maq Posted April 14, 2009 Share Posted April 14, 2009 Try this, is that division sign really supposed to divide these two numbers for the title? echo"maxnerve) . " [" . $nervepercent . "] height='19'>\n"; Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809125 Share on other sites More sharing options...
seany123 Posted April 14, 2009 Author Share Posted April 14, 2009 i dont want anything divided... i just want it to echo 1 value "/" echo second value. its like saying 100 out of 1000 Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809126 Share on other sites More sharing options...
seany123 Posted April 14, 2009 Author Share Posted April 14, 2009 whats $num1 all about?? lol Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809129 Share on other sites More sharing options...
Maq Posted April 14, 2009 Share Posted April 14, 2009 whats $num1 all about?? lol I was testing it. Just replace it with your original variable. Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809130 Share on other sites More sharing options...
seany123 Posted April 14, 2009 Author Share Posted April 14, 2009 yeah i did... it just echo's $player->nerve... i want it to echo this $player->nerve / $player->maxawake [$nervepercent] and / doesnt mean devide the two values.. Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809133 Share on other sites More sharing options...
Maq Posted April 14, 2009 Share Posted April 14, 2009 echo"nerver) . " / " . number_format($player->maxnerve) . " [" . $nervepercent . "]' height='19'>\n"; Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809138 Share on other sites More sharing options...
seany123 Posted April 14, 2009 Author Share Posted April 14, 2009 thats exactly what i was wanting... maq your a legend.. cheers. Quote Link to comment https://forums.phpfreaks.com/topic/153951-solved-help-me-echo-this-line/#findComment-809139 Share on other sites More sharing options...
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.