michael couldnt find the registration number becuase it was called 'num' so now give him both 'num' and 'registration_number'

This commit is contained in:
james 2011-03-04 05:51:23 +00:00
parent 133b41da5b
commit 7d6d1851cd

View File

@ -483,7 +483,7 @@ function getRegistrationsId($user){
}
function getRegistration($id) {
global $conference;
$q=mysql_query("SELECT id,num,start,status,end,nummentors,numstudents FROM registrations WHERE id='$id' AND conferences_id='{$conference['id']}'");
$q=mysql_query("SELECT id,id AS registration_id,num,num AS registration_number,start,status AS registration_status,end,nummentors,numstudents FROM registrations WHERE id='$id' AND conferences_id='{$conference['id']}'");
$reg=mysql_fetch_assoc($q);
if(!$reg) return null;