php - Find Max Value in MySQL Column -
seems question has been answered alot, can't work!
have 'month' column in db table, reaches 313 max entry.
am trying assign max amount php value working keeps returning $maxmonth 99?
current coding:
$result=mysqli_query($con,"select max(month) max $ulliabforecast"); {while ( $row = $result->fetch_assoc() ) $maxmonth=$row['max'];} appreciate help.
seems month varchar , need cast make work.
select max(cast(month signed)) max1 $ulliabforecast
Comments
Post a Comment