hey there,
cant seem to find a work around for this,
i have a table where each hour of the day is a field , 01, 02, 03 ......
and when i pass a variable to the table it treats it like the variable result,
<?php
$Hour = strftime("%H");
print $Hour;
function OneDay($Unit){
$result = mysql_query("SELECT `VOffset`, '{$Hour}' FROM Rain_Gauges WHERE `Sensor_ID` = {$Unit} $connection");
$Row = mysql_fetch_row($result);
//subtract the Hour Value from the VOffset value
$Unit = ($Row[0] - $Row[1]);
return $Unit;
}
can you maybe tell me what i am messing up here?
thanks