DB Table Field
gpehk1con pt_mstr pt_part , pt_desc
gpehk2con pod_det pod_part
Below statement can connect gpehk2con database:
$conn1_id=odbc_connect("gpehk2con","sysprogress","s", SQL_CUR_USE_ODBC);
$sql1 = "select pod_part from PUB.pod_det" ;
if ($result1 = odbc_do($conn1_id, $sql1))
{ odbc_result_all($result1, "BGCOLOR='#AAFFAA' border=3 width=30% bordercolordark = '#FF0000'");
odbc_free_result($result1);
}
I want to link the pt_mstr and pod_det together so as to get the pt_desc (item description).
The select statement is
"select pod_part, pt_desc from pod_det, pt_mstr where pod_part = pt_part".
How to execute the command which involves two databases?? Please advice.
Thanks.