VBB论坛安装ServUplus的IP获取问题!,
提示如下: Warning: gethostbyaddr(): Address is not in a....
作者 tmyu 发布于 2003-07-01 分类:php基础编程
请问,我在一个页面中要使用几个表的内容,那么使用查询变量时可使用一样的名称吗?见下面例子,$sql,$qq
表1
$sql="select * from table1";
$qq=mysql_query($sql);
$aa1=mysql_fetch_array($qq);
表2
$sql="select * from table2";
$qq=mysql_query($sql);
$aa2=mysql_fetch_array($qq);
逛论坛交流:数据库问题
可以,php程序是顺序执行
$sql="select table1.***,table2.*** from table1,table2"
$sql="select table1.***,table2.*** from table1,table2
table1.***//这里的*是指的字段名吗?中间用.分隔?
3 条回复
回复