php输出mysql数据库中指定字段内容
这是程序:$conn=mysql_connect("127.0.0.1","root","root");if($conn){echo'连接成功';$q=mysql_que...
这是程序:
$conn=mysql_connect("127.0.0.1","root","root") ;
if($conn){
echo '连接成功';
$q = mysql_query("select admin,Tel from ruanjian.wto limit 10", $conn);
while($rs = mysql_fetch_assoc($q)){
echo $rs['admin'], " : ", $rs['password'], "<br />";}
}else{
echo'连接失败'; 展开
$conn=mysql_connect("127.0.0.1","root","root") ;
if($conn){
echo '连接成功';
$q = mysql_query("select admin,Tel from ruanjian.wto limit 10", $conn);
while($rs = mysql_fetch_assoc($q)){
echo $rs['admin'], " : ", $rs['password'], "<br />";}
}else{
echo'连接失败'; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询