[eluser]terry101[/eluser]
oo snap it worked!!! thank you sir... i got another error tho in model. anyidea?
error
Fatal error: Call to undefined function shal() in C:\wamp\www\code\application\models\usermodel.php on line 10
Code:
function register_user($username, $name, $email, $password) {
$shal_password = shal($password);
Code:
<?php
class Usermodel extends CI_Model {
function __Usermodel() {
parent::__Model();
}
function register_user($username, $name, $email, $password) {
$shal_password = shal($password);
$query_str = "INSERT INTO tbregister (username, password, name, email) Value ('{$username}', '{$name}', '{$email}', '{password}')";
$this->db-query($query_sr, array($username,$name,$email,$shal_password));
}
}