i get this error i dont know why.
i have a function that produce random characters
function randomString($length) {
$len = $length;
$base = 'ABCDEFGHIJKLMNOPQRSTWXYZabcdefghıjklmnoprstwxyz123456789';
$max = strlen($base) - 1;
$activatecode = '';
mt_srand((double) microtime() * 1000000);
while (strlen($activatecode) < $len + 1)
$activatecode.=$base(mt_rand(0, $max));
return activatecode;
}
and i call this function in
public function kayitBasarili() {
$this->load->view('kayitBasarili');
$username = $this->input->post('username');
$email = $this->input->post('email');
$password = $this->input->post('password');
$data = array();
$data['username'] = $username;
$data['email'] = $email;
$data['password'] = $password;
**$activationCode = $this->randomString(10);**
$this->load->view('kayitBasarili', $data);
$this->kayitmodel->uyeEkle($username, $email, $password,$activationCode);
}
Why i get this error ?

look at this line:
it should be:
or