时间:2021-07-01 10:21:17 帮助过:42人阅读
....................连接数据库代码省略.............
$result=mysql_query("select * from 表名 where id=$_GET['id']");
$arr=mysql_fetch_assoc($result);
print_r($arr);
------解决方案--------------------
在http://localhost/wosheji/lantan/clc.php?id= 6页面中加入
if(!empty($_GET)){
print_r($_GET);
}
看看输出什么,如果有id值,那么在if的表达式中加入#1的内容