php 传值的问题 求高手
....................连接数据库代码省略.............
$result=<a style="color:#f60; text-decoration:underline;" title="mysql" href="https://www.php.cn/zt/15713.html" target="_blank">mysql</a>_query("select * from 表名 where id=$_GET['id']");
$arr=mysql_fetch_assoc($result);
print_r($arr);
<br><font color="#e78608">------解决方案--------------------</font><br>在http://localhost/wosheji/lantan/clc.php?id= 6页面中加入<br>if(!empty($_GET)){<br> print_r($_GET);<br>}<br>看看输出什么,如果有id值,那么在if的表达式中加入#1的内容 <div class="clear"></div>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号