Prepared mysqli select statement on longtext field is coming back empty

前端 未结 1 1305
轻奢々
轻奢々 2020-12-10 16:40

I\'ve got a database query function that works well -- except that I\'m running into what\'s apparently a known issue with mysqli prepared statements and longtext fields. W

1条回答
  •  情话喂你
    2020-12-10 17:11

    I managed to solve the same issue by calling mysqli_stmt_store_result before binding the data.

    Someone had the same problem and shared the answer on the php.net website:

    Apparently, if you have longtext present, you HAVE to call store_result before using bind_result.

    http://bugs.php.net/bug.php?id=47928

    0 讨论(0)
提交回复
热议问题