Home  >  Article  >  Backend Development  >  ,简单有关问题

,简单有关问题

WBOY
WBOYOriginal
2016-06-13 13:44:30841browse

在线等,简单问题!
MySQL 数据库里有个 good 表,字段如下:

good_id(自动增长)、good_name
其中 good_id(13、14、…..) 是数字,good_name 中是汉字(天南星、白术…)

有个dateinfo.php页面,带参数的,dateinfo.php?good_id=13 ,我要把good_id参数 对应的good_name 字段中的汉字提取出来,显示在

之间,就是天南星


------解决方案--------------------
PHP code

$result=mysql_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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn