当前位置:编程学习 > php >>

php连接完数据库怎么显示不出来

<?php $link_ID = mysql_pconnect('localhost','root',''); if(mysql_select_db('hang',$link_ID)){ //echo "OK"; }else{ echo "NG"; } $sql = "select * from qq"; $Query_ID = mysql_query($sql,$Link_ID); $Record = mysql_fetch_array($Query_ID); $num = mysql_num_rows($Query_ID); echo $Record[0]." "; echo $Record[1]." "; ?>
追问:里面有数据啊   就是显示不出来???
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,