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

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

WBOY
Release: 2016-06-06 20:49:59
Original
1109 people have browsed it

我想要将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>
Copy after login
Copy after login

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

谢谢

回复内容:

我想要将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>
Copy after login
Copy after login

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

谢谢

试试

<code>mysql_fetch_object()
</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template