SHOW:
|
|
- or go back to the newest paste.
| 1 | public function gantipass($nama, $password1){
| |
| 2 | - | $cek = $this->db->select('nama')->where('nama',$nama)->get('user');
|
| 2 | + | $sql="select * from nama where nama like '%".addslashes($nama)."%'"; |
| 3 | - | if($cek->num_rows==0){
|
| 3 | + | $ceck = $this->db->query($sql); |
| 4 | //$query->num_rows(); | |
| 5 | - | }else{
|
| 5 | + | if($cek->num_rows==0){
|
| 6 | return FALSE; | |
| 7 | }else{
| |
| 8 | $kudet = array('password'=>md5($password1));
| |
| 9 | - | } |
| 9 | + | |
| 10 | - | } |
| 10 | + | |
| 11 | } | |
| 12 | } |