ini mas, saya kan pengen manggil data field kdkelas, dan posisi field tsb berada d'table jadwal1....ketika saya panggil. kok baris tampilnya tambah 1.. semisal, seharusnya data yg tampil hanya 2, tapi yg tampil 3, dan tjadi double data pemanggilan, padahal d'database tetep 2 record..masalahnya apanya ya mas ?
$krs = mysql_query("SELECT * FROM krs1, makul, jadwal1 WHERE NIMHS='$NIMHS' AND krs1.kodekuliah = makul.KDMKM AND makul.KDMKM=jadwal1.KDMKM and krs1.KDSEMES='$semester' and krs1.tahun='$tahun'
");
/*$krs = mysql_query("SELECT * FROM krs1, makul WHERE NIMHS='$NIMHS' AND krs1.kodekuliah = makul.KDMKM and krs1.KDSEMES='$semester' and krs1.tahun='$tahun'");*/
$jum = 0;
$i = 1;
while($k = mysql_fetch_array($krs)){
echo "<tr><td align='center'>$i</td>";
echo "<td>".$k['KDMKM']."</td>";
echo "<td>".$k['NAKMK']."</td>";
echo "<td align='center'>".$k['SKSMK']."</td>";
echo "<td align='center'>".$k['kdkelas']."</td>";
echo "<td align='center'>".B."</td>";
echo "<td align='center'>".' '."</td>";
echo "<td align='center'>".' '."</td>";
echo "</tr>";
$jum = $jum + $k['SKSMK'];
$i++;