grab session user id when adding a row in a php file

I have this line in a php file:
$gridConn ->render_table(“drivers”,“driversid”,“driversid,farm01,farm02,userid”);
It works fine.
When I use the following line in a js file, a row is correctly added to the grid and to the table in my database:
My issue is that I don’t want the UserID to be available or seen in the js file. I want to have it available only in the php file. I know how to get the userid in the php file, but I don’t know how to insert it into the the render_table row.
Is there a way to do this?

In the third attribute of the render_table function (“driversid,farm01,farm02,userid” in your case) you are defining the columns that needed t be displayed in your grid.