Are you sure that id is meant to be named id on line 48. Should it not be rideid?

PHP Code:
$id $_GET['rideid']; 
Try that and see if that works.