/*这个代码工作(呼应图像)本地主机,但不显示在活动网站*/ 请帮助,,,,无法显示(回波)图像甚至图像已被保存到数据库
<?php echo "<img src=geti/tipb_geti.php?id=$lastid width=200px height=180px >";
/*下面这样的PHP块tipb_geti.php文件*/
<?php
include("connect.php");
[email protected]($_REQUEST['id']);
[email protected]_query("select image from tipuranibasti where id=$id");
[email protected]_fetch_assoc($image_query);
$image=$image_row['image'];
header("content-type: image/jpeg");
echo $image;
?>
那看起来没有关系cakephp。该标签可以被移除。 – mark 2012-04-07 00:12:03
addslashes是一个古老的废话,并不安全的SQL注入预防。您应该从大脑中删除该函数存在的任何知识,并立即切换到mysql_real_escape_string()。 – 2012-04-07 00:56:34