Author Topic: last 24 hour rain problem  (Read 509 times)

0 Members and 1 Guest are viewing this topic.

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
last 24 hour rain problem
« on: June 15, 2015, 02:40:47 PM »
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
« Last Edit: June 15, 2015, 09:31:59 PM by metzeric »

 

anything