我正在尝试从数据库中显示我的网页中的图书库但是书封面的blob图像不会显示我只是在屏幕上打印行话然后书名作者等在这里很好是我的代码:
<?php $db="table_bookSite";
$link = mysqli_connect('mysql1.host.ie', 'fhgjhjhgjh_admin', 'ghhdfhgvjh', $db);
if (mysqli_connect_errno()) { trigger_error('Database connection failed: ' . mysqli_connect_error(), E_USER_ERROR); }
$result = mysqli_query($link, "SELECT * FROM books" ) or die("SELECT Error: ".mysqli_error()); $num_rows = mysqli_num_rows($result);
print "<table width=300 border=1>";
print "<tr><th>Book Cover</th><th>Title</th><th>Author</th><th>Synopsis</th><th>ISBN</th>
</tr>";
while ($get_info = mysqli_fetch_row($result)){
print "<tr>"; foreach ($get_info as $field)
print "<td>$field</td>";
print "</tr>"; }
print "</table>";
mysqli_close($link);