摘要:
最基本的连接,输出$conn=mysql_connect('localhost','root','');//mysql_query("SETNAMES'gbk'",$conn);mysql_select_db('sim',$conn);$strSQL="select*fromsim_stui_nfo";$rs=mysql_query($strSQL);if(($num=mysql_num_rows($rs))>0){$row=mysql_fetch_array($rs) 阅读全文