🔒 Closed Student record system using codeigniter framework

Status
Not open for further replies.

vortex78

Fanatic
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();
 
Status
Not open for further replies.

About this Thread

  • 9
    Replies
  • 1K
    Views
  • 7
    Participants
Last reply from:
roveglenton123

Trending Topics

Online now

Members online
1,212
Guests online
1,188
Total visitors
2,400

Forum statistics

Threads
2,271,708
Posts
28,937,518
Members
1,237,818
Latest member
gieterdave2011
Back
Top