Help to set php session instead a static value


Hi i’m using thi script
And i’ve a problem… i want set user session rating instead static member id. Now i can add only 1 rating. I would like to set more rating for different id session

I’ve try to add this on index.php:
$member_id = session_id();

And on add rating.php this:
$member_id = session_id();

Before it was:
$member_id = 1;


Why are you using session_id()? If you want the member ID, use that, not the session ID.