SHOW:
|
|
- or go back to the newest paste.
1 | - | $string = str_replace("'", "", $this->username); |
1 | + | $string = str_replace("'", "", $this->username); // kyknya bukan kutip ini.. tp ` <-?!!! |
2 | - | $this->db->where('username', $string); |
2 | + | $this->db->like('username', $string); |
3 | - | $update = $this->db->update('tabel', $post); |
3 | + | //atau |
4 | $this->db->where('username like '".$this->username."'"); | |
5 | ||
6 | $update = $this->db->update('tabel', $post); | |
7 | //harusnya | |
8 | update set blabla where username like '$string'; |