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

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -