What's new

Closed Student record system using codeigniter framework

Status
Not open for further replies.

vortex78

Honorary Poster
Joined
Apr 14, 2017
Posts
432
Reaction
91
Points
179
Age
26
mga idol nagawa po kasi ako ng system ngayon about student record management system. tapos po yung student information at student record ay magkabukod ang database table. ask ko lang po mga idol. pano po kaya madidisplay yung laman nung 2 database table through ID para makita ang record ng bawat student. maraming salamat po mga idol. sana matulongan nyu ako.
 
Using mysql

Code:
SELECT <...>
FROM A.table1 t1 JOIN B.table2 t2 ON t2.column2 = t1.column1;

*Depende na po sa ID ng table at ID ng item kung specific ang pag display nyo
 
Using mysql

Code:
SELECT <...>
FROM A.table1 t1 JOIN B.table2 t2 ON t2.column2 = t1.column1;

*Depende na po sa ID ng table at ID ng item kung specific ang pag display nyo
naka foreign key yung id idol. pwede kaya sa codeigniter yan?
 
try this code:

$this->db->join('table1', 'table1.id' = 'table2.id');
$query = $this->db->get();

return $query->result_array();
 
try this code:

$this->db->join('table1', 'table1.id' = 'table2.id');
$query = $this->db->get();

return $query->result_array();
yan yung way para magsamahin sila diba idol? pano yung pagdidisplay ng laman nan. na yung bawat id lang ang didisplay
 
Status
Not open for further replies.
Back
Top