Skip to content

Commit 4e35b22

Browse files
committed
Added function updateUserInfo() in class registration
1 parent f5a15d4 commit 4e35b22

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/class.participant.php

-8
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ public function updateInfo($pname, $pemail, $pcoll, $pcntct, $pstate, $preq, $pn
156156
$sql="UPDATE participant SET pc_name='".$pname."', pc_email='".$pemail."', pc_college='".$pcoll."', pc_contact='".$pcntct."', pc_state='".$pstate."', pc_accomreqst='".$preq."', pc_nitcrollno='".$pnitc."' WHERE pc_tatid = '".$this->pid."'";
157157

158158
$r=dbquery($sql);
159-
if($r)
160-
return 1;
161-
else
162-
return 0;
163159
}
164160

165161
/**
@@ -173,10 +169,6 @@ public function updateStatus($st){
173169
$sql="UPDATE participant SET pc_confirm='".$st."' WHERE pc_tatid = '".$this->pid."'";
174170

175171
$r=dbquery($sql);
176-
if($r)
177-
return 1;
178-
else
179-
return 0;
180172
}
181173

182174
/**

src/interface.php

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ function participantInfo($tid){
3232
return json_encode($arr);
3333
}
3434

35+
/** Updates a Participant's personal details
36+
*/
37+
function updateParticipantInfo($tid, $pname, $pemail, $pcoll, $pcntct, $pstate, $preq, $pnitc){
38+
$part=new participant($tid);
39+
$part->updateInfo($pname, $pemail, $pcoll, $pcntct, $pstate, $preq, $pnitc);
40+
}
41+
3542
/**
3643
* Returns the status of a Tathva ID
3744
* Tested.

0 commit comments

Comments
 (0)