Home >Backend Development >PHP Tutorial >mysql - PHP 如何将资料库中的BLOB转成TEXT显示出来?

mysql - PHP 如何将资料库中的BLOB转成TEXT显示出来?

WBOY
WBOYOriginal
2016-06-06 20:49:591110browse

我想要将MYSQL的BLOB显示出来,但是都出现不了

程式码:

<code>while( $row = mysql_fetch_array($result)){
   $query1 = "select * from product_description where product_id=".$row[0];
   $result1 = mysql_query($query1) or die("無法送出".mysql_error());
   $row1 = mysql_fetch_array($result1);

echo $row1[4]."<br>";
</code>

怎么样才能够让他显示出来呢?

谢谢

回复内容:

我想要将MYSQL的BLOB显示出来,但是都出现不了

程式码:

<code>while( $row = mysql_fetch_array($result)){
   $query1 = "select * from product_description where product_id=".$row[0];
   $result1 = mysql_query($query1) or die("無法送出".mysql_error());
   $row1 = mysql_fetch_array($result1);

echo $row1[4]."<br>";
</code>

怎么样才能够让他显示出来呢?

谢谢

试试

<code>mysql_fetch_object()
</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn