bang Ellyx saya minta tolong..
saya punya 3 tabel, n mau search multiple table.
tiap tidak berelasi.
saya bingung,, nanti yang dipanggil untuk ditampilkannya apa ya?? ini tabelnya.
tabel internet_access:
in_id,
employee_id,
upload_id,
date,
time,
business_purpose
tabel computer_access:
ca_id,
employee_id,
upload_id,
date,
time,
business_purpose,
access_request
tabel computer_commnication_purchase :
cc_id,
employee_id,
upload_id,
date,
purpose_request,
type_install,
equipment,
description_hw,
reason,
business_purpose
dan ini potongan kodenya.
...
if ($_POST['keyword']!=""){
$sall="select * from internet_access where MATCH(business_purpose) AGAINST ('".$_POST['keyword']."') order by in_id DESC
UNION
select * from computer_access where MATCH(business_purpose) AGAINST ('".$_POST['keyword']."') order by ca_id DESC
UNION
select * from computer_communication_purchase where MATCH(business_purpose) AGAINST ('".$_POST['keyword']."') order by ca_id DESC ";
$qall=mysql_query($sall) or die (mysql_error());
semua memliki kesamaan pada business purpose.
nah bagaimana saya menampilkan semuanya?? makasih.