Correct mistake there:
$ratingindex[($_POST['INDEXID']-1)][1]

Signed-off-by: semteacher <semteacher@gmail.com>
Merge branch 'rating'