🔒 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
435
Guests online
6,225
Total visitors
6,660

Forum statistics

Threads
2,340,676
Posts
29,316,927
Members
1,118,148
Latest member
leopogi2121
Back
Top