我正在尝试从我的数据库获取数据,但是当我访问MYWEBPAGE.com/service.php?id=2 (是的,有一篇具有该id的文章)时,它只写道:[true],而不是将对象显示为json。stmtTitle->execute(); // Loop through each row in the result set
while($row = $stmtTitle->fetch
结果:我的"bind_result()“版本工作得很好,并返回:Content: Test1"Call to a member functionfetch_assoc() on boolean in ...".我尝试了很多不同的方法来让它起作用,但是我把它带回到了下面的最小值,但是它不能工作。有人能帮忙吗?
我在数据库中的测试表有两列:"id“和"content”。使用bind_re