显示指定字段内的所有内容

显示指定字段内的所有内容

显示指定字段内的所有内容


请问如何显示指定字段内的所有内容
用变量来控制显示无信息
sql="select * from lm3  where lm like 'lm'"

sql="select * from lm3  where lm like '新闻'"
这样就能显示所要的内容
(这个程序是ASP的)

先学习基础吧。这样会好点

[复制到剪切板]
CODE:
<?php
$conn 
mysql_connect("localhost","root","");
$sql="select * from lm3  where lm like '%新闻%'";
$query mysql_query($sql);
while(
$row mysql_fetch_array($query)){
    echo 
$row[0];
}
?> ;


毕业了。。。