hi dear experts im here once again...i have a problem on showing the result when im using inner join...here's my code..
[PHP]
$sql_trans_pro_ tbl="SELECT transaction_tbl .date_subscribe ,transaction_tb l.date_expire".
",product_tbl.p ro_id,product_t bl.pro_des FROM transaction_tbl INNER JOIN".
" product_tbl ON transaction_tbl .pro_id=product _tbl.pro_id WHERE".
" transaction_tbl .account_name=' $forder_name'";
$update_trans_p ro_tbl=pg_exec( $sql_trans_pro_ tbl);
while($fld=pg_f etch_array($upd ate_trans_pro_t bl)) {
$t_date_subscri be=$fld['transaction_tb l.date_subscrib e'];
$t_date_expire= $fld['transaction_tb l.date_expire'];
$p_pro_id=$fld['product_tbl.pr o_id'];
$p_pro_des=$fld['product_tbl.pr o_des'];
}
[/PHP]
i usually do this when im using 1 table only and it works but when i make used of INNER JOIN...nothing happen...please help sir/madam..
TIA
[PHP]
$sql_trans_pro_ tbl="SELECT transaction_tbl .date_subscribe ,transaction_tb l.date_expire".
",product_tbl.p ro_id,product_t bl.pro_des FROM transaction_tbl INNER JOIN".
" product_tbl ON transaction_tbl .pro_id=product _tbl.pro_id WHERE".
" transaction_tbl .account_name=' $forder_name'";
$update_trans_p ro_tbl=pg_exec( $sql_trans_pro_ tbl);
while($fld=pg_f etch_array($upd ate_trans_pro_t bl)) {
$t_date_subscri be=$fld['transaction_tb l.date_subscrib e'];
$t_date_expire= $fld['transaction_tb l.date_expire'];
$p_pro_id=$fld['product_tbl.pr o_id'];
$p_pro_des=$fld['product_tbl.pr o_des'];
}
[/PHP]
i usually do this when im using 1 table only and it works but when i make used of INNER JOIN...nothing happen...please help sir/madam..
TIA
Comment