First of all, don't post so much code on the site. I bet lots of people just copied it! When you do post code, use the code tags as instructed in the Tut101.
Please add quotes to your code to show what you want each section to do. It will make it easier for me and probably the lecturer to see if the code does what you think it would.
Like I have to guess this is where you are trying to add info to the session?
Language: PHP
session_start();
$player_id="";
$fname_id="";
$sname_id="";
$Cnumber_id="";
This bit below should be at the top of your page, even before the opening html tag to prevent the error that tells you header has already been sent.
Language: PHP
<php session_start(); ?>
This is just assigning empty strings to some variable. Make it clear what you are doing here.
Language: PHP
$player_id="";
$fname_id="";
$sname_id="";
$Cnumber_id="";
See how I put those in code sections? They look nice don't they? Comment the code a bit so that I can see what you want to do in each section. Can't guess what you were thinking
oh, and close your table tag
----------------------------------------------------------------------------------------
int get_random_number() {
return 4;
}