//打开数据库$conn=mysql_connect("localhost","root","密码");//设置编码mysql_query("setnamesutf8");//选择数据库mysql_select_db("库名");//查询操作$rs=mysql_query("select*from查询语句");while($row=mysql_fetch_array($rs)){echo"{$row['字段名']}";echo"{$row['字段名']}";};//释放结果集mysql_free_result($rs);//关闭数据库mysql_close($conn);//手敲代码,给个赞呗。
pdo查询[朗读]
@delete
顶0
加入收藏
相关问答推荐