时间:2021-07-01 10:21:17 帮助过:45人阅读
No Database,
") ;Fields List of Two tables
Fd1 = " . $fdlist1 ;
$fdlist1 = substr($fdlist1,0,strlen($fdlist1)-1) ;
$fdlist2 = "" ;
$sqlquery = "select * from " . $mysql_table . " where 1=2 " ;
$records2 = mysql_query ($sqlquery) ;
$idcount2 = mysql_num_fields ( $records2 ) ;
for ( $i = 0 ; $i < $idcount2 ; $i++)
$fdlist2 .= mysql_field_name($records2,$i )."," ;
echo "
FD2 = " . $fdlist2 ;
$fdlist2 = substr($fdlist2,0,strlen($fdlist2)-1) ;
$fp = fopen ("fdlist.txt","w") ;
fwrite ($fp,$ctable) ;
fwrite ($fp,"n");
fwrite ($fp,$fdlist1) ;
fwrite ($fp,"n");
fwrite ($fp,$etable) ;
fwrite ($fp,"n") ;
fwrite ($fp,$fdlist2) ;
fclose($fp) ;
odbc_close($conn);
if ( $idcount2 != $idcounts ) {
echo "
The fields of two tables doesn't match" ;
echo "
ODBC_table Fields = " . $idcounts;
echo "
MySQL_table Fields = " . $idcount2;
}
?>