Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $new_bal = $user_bal - $this->view->contest_details->entry_fee;
- $where = array();
- $where[] = $users_tab->getAdapter()->quoteInto('username = ?', $username);
- if($this->view->contest_details->contest_type == 'free') {
- $data = array(
- 'points' => $new_bal,
- );
- } else {
- $data = array(
- 'money' => $new_bal,
- );
- }
- $data['updated'] = time();
- $row_cnt = $users_tab->update($data, $where);
- if($row_cnt < 1) {
- return false;
- }
- ?>
Add Comment
Please, Sign In to add comment