PHP / MYSQL select using mysqli_query

前端 未结 1 1007
独厮守ぢ
独厮守ぢ 2020-12-07 00:16

I am struggling with my script and since switching to mysqli it will no longer work.I have checked the PHP manual but just cannot see what I am doing wrong, surely a beginne

相关标签:
1条回答
  • 2020-12-07 00:47

    You are missing your resource identifier obtained with mysqli_connect() which is required with mysqli_* and not with mysql_*. Assuming you called yours $link:

    $result = mysqli_query($link, "SELECT * FROM gear") or die(mysqli_error($link)); 
    
    0 讨论(0)
提交回复
热议问题