add posting score to sql by php and change index to php