<?php
require_once "config/konek.php";
$no=1;
$sql = "SELECT j.*, jb.nama as jenis_buku, pg.nama as pengarang, pb.nama as penerbit
FROM judul j, jenis_buku jb, pengarang pg, penerbit pb WHERE j.jenis_id=jb.id AND j.pengarang_id=pg.id AND j.penerbit_id=pb.id";
//$sql = "SELECT * FROM judul ";
$qry = mysql_query($sql,$koneksi);
while($data=mysql_fetch_array($qry)) {
//$no++;
//if($no % 2 == 0) $cls='odd';
//else $cls='even';
?>
Senin, 23 Juli 2012
Menggabungkan beberapa atribut dalam tabel dengan perinah sql PHP
23.17
1 comment
Langganan:
Posting Komentar (Atom)
test dlu...
BalasHapus