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
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