[php]
if($_waterfall_measurement > 200)
{
echo "<img src='exceeded.jpg' />";
}
else
{
echo "<img src='green.jpg' />";
}
[/php]
Just use an if statement :)
If the measurement is greater than 'whatever', show relevant image.
Regards
This is what i have done. I want to get the value which exceed threshold value. how can i do that?[PHP]$qq = mysql_query("SELECT Rainfall_ID,Station_ID,Rainfall FROM rainfall ORDER BY Rainfall_ID");
while($row = mysql_fetch_array($qq)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
echo "$Station_ID".','."$Rainfall";
}
$qq = mysql_query("SELECT Station_ID,Threshold_Val FROM station ORDER BY Station_ID");
while($row = mysql_fetch_array($qq)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
echo "$Station_ID".','."$Threshold_Val";
}[/PHP]