如果不改变你现在的数据库,那么调用新的页面必须要增加一个参数,表示调用的国内还是国外,sql里面根据这个参数设置不同的表,例如:
if ($lb=='国内') $str="select * from gjfl where did='$id'"
else $str="select * from gjbz where did='$id'"
$sql=mysql_query($str)
SELECT * FROM tuiguang LEFT JOIN account ON tuiguang.tgr = account.name WHERE tgr = '' ORDER BY tuiguang.id DESC2表联合查询
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)