PHP7(一):數據庫操做(鏈接、增刪改查操做)

更新 mysqli鏈接,推薦mysql $conn = mysqli_connect('127.0.0.1','root2','root2'); mysqli_select_db($conn,'jianshu'); $sql = "select * from posts"; $result = mysqli_query($conn,$sql); while($row = mysqli_fetch_
相關文章
相關標籤/搜索