为什么 mysqli fetch() 从 longtext 列返回空结果? [英] Why does mysqli fetch() return empty results from longtext column?

查看:64
本文介绍了为什么 mysqli fetch() 从 longtext 列返回空结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因mysqli $query ->fetch(); 返回空白,即我的 mysql 表中的长文本列?

For some reason mysqli $query -> fetch(); returns blank, the columns that are longtext in my mysql table?

有什么想法吗?我将列设置为 text,它工作正常.它在我的 WAMP 服务器上也能正常工作,但是当我把它放到生产服务器上时,它只返回空白.两个系统都运行php 5.3.5

Any ideas? I set the columns to text, it works fine. It also works fine on my WAMP server, but when I put it up to the production server it just returns blanks. Both systems are running php 5.3.5

推荐答案

您是否尝试过使用 $mysqli->query()$result->fetch_object()?

Have you tried using $mysqli->query() and $result->fetch_object()?

同样的问题?

这篇关于为什么 mysqli fetch() 从 longtext 列返回空结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆