[eluser]slothdog[/eluser]
hey all...
im getting this error:
Fatal error: Call to undefined function: standard_date()
except from controller:
Code:
## LOAD HELPERS
$this->load->helper(array('form', 'url','date'));
function submitdata()
{
## TIME AND DATE
$format = 'DATE_RFC822';
$time = time();
$signupdate = standard_date($format, $time);
}
## SET DATA TO PUT IN DATABASE
$data = array(
'rules_agree' => $_POST['rules_agree'],
'signupdate' => $signupdate
);
$this->db->insert('registration', $data);
could you help me figure out what im doing wrong?
thanks!