I am trying to add my last 24 hour rain total to my front page my test tag shows this $totalrainlast24hours = '0.29'; // total rain last 24 hours
but when i enter the following it shows up .82 on my page which is the yesterday total and not the 24 hrs what do i have wrong??
<td class="data1" nowrap="nowrap"><?php langtrans('Last 24 Hours'); ?>: </td>
<td class="data1" nowrap="nowrap" style="text-align: right;">
<span class="ajax" id="ajaxrainYes"><?php printf("%8.2f", strip_units($totalrainlast24hours)); echo $uomRain; ?></span>
thanks
Eric
Edit all fixed