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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:49:59
Original
1155 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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template