I looked through all the forums for something to use, but nothing wants to work right:
$query = "SELECT AVE(rated_number) AS average FROM gallery_ratings WHERE image = '$id'";
$ratingx = number_format($query['average'], 1, '.', '');
I want to echo out the average number just as a number. It keeps echoing out 0.0 though, even if there are ratings in the database.