可能重复:
MySql、PHP 在 HTml 上显示图片
如何在我的 php 表中显示图片“在我的 ocde 的屏幕截图部分”?当我在我的网站上显示表格时,我不想像我的代码现在所做的那样从图片中看到名称,但我想看到真实的图片:
此代码将从 sql 数据库中获取所有信息。
我的代码
echo "<table class=showtable>";
echo "<tr>
<td class=show >".$row['ID']."</td>
<td class=show2>".$row['DateTime']."</td>
<td class=show3>".$row['Stock']."</td>
<td class=show4>".$row['Type']."</td>
<td class=show5>".$row['Trade']."</td>
<td class=show5>".$row['Entry']."</td>
<td class=show5>".$row['Stoploss']."</td>
<td class=show5>".$row['Target1']."</td>
<td class=show5>".$row['Target2']."</td>
<td class=show6>".$row['Explination']."</td>
<td class=show7>".$row['Screenshot']."</td> </tr>";
echo "</table>";
}