Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
apa yang salah ya?kenapa dia ga mau masuk ke database padahal databasenya sudah disamakan
kenapa ya ga mau konek padahal databasenya udah samaa?<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class login_model extends MY_Model {
public function login($user,$pass)
{
return $this->db->query("SELECT user.*,m_satker.lab,m_satker.id_jenis_puskes from user left join m_satker on m_satker.kode_satker=user.kode_rs where username='".$user."' and password='".md5($pass)."' and aktif='ya' order by id desc")->result_array();
}
public function loginikp($user, $passikp){
return $this->db->query("SELECT * from user where username='".$user."' and password_ikp='".$passikp."' and aktif='ya' order by id desc")->result_array();
}
}
1 Jawaban:
<div>Edit filename: core/Common.php, line number: 257<br><br>Sebelumnya</div><pre>return $_config[0] =& $config; <br></pre><div><br>Ubah jadi</div><pre>$_config[0] =& $config; return $_config[0];</pre><div><br>Lebih baik upgrade framework <a href="https://github.com/bcit-ci/CodeIgniter/commit/69b02d0f0bc46e914bed1604cfbd9bf74286b2e3">https://github.com/bcit-ci/CodeIgniter/commit/69b02d0f0bc46e914bed1604cfbd9bf74286b2e3</a><br><br>sumber jawaban : <a href="https://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter">https://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter</a><br><br></div>