在线等,简单问题!
MySQL 数据库里有个 good 表,字段如下:
good_id(自动增长)、good_name
其中 good_id(13、14、…..) 是数字,good_name 中是汉字(天南星、白术…)
有个dateinfo.php页面,带参数的,dateinfo.php?good_id=13 ,我要把good_id参数 对应的good_name 字段中的汉字提取出来,显示在
$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 good where good_id=".$_GET['good_id']);
$arr=mysql_fetch_assoc($result);
echo "<title>".$arr['good_name']."</title>"; <div class="clear"></div>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号