我没有细看,估计问题在
[php]
print_r( "<IMG SRC=\"showphoto2.php? $PicNum=$row->PicNum\"width=32 height=32>");
[/php]
这一句上,提供参考:
打印出 $row->PicNum 等,确认sql没有问题后,就出在显示上了!
提醒:
你上传图片是的表单的type属性设置了吗?
很容易忽略的!
Davy
[php]
print_r( "<IMG SRC=\"showphoto2.php? $PicNum=$row->PicNum\"width=32 height=32>");
[/php]
这一句上,提供参考:
打印出 $row->PicNum 等,确认sql没有问题后,就出在显示上了!
提醒:
你上传图片是的表单的type属性设置了吗?
很容易忽略的!
Davy
改为
print( "<IMG SRC=\"showphoto2.php?PicNum=$row->PicNum\"width=32 height=32>");
$PicNum在PHP里变量
要CODE看Faq
1.
print_r( "<IMG SRC=\"showphoto2.php? $PicNum=$row->PicNum\"width=32 height=32>");
改为
print( "<IMG SRC=\"showphoto2.php?PicNum={$row->PicNum}\"width=32 height=32>");
2.
$result=mysql_query("SELECT * FROM Images WHERE PicNum=$PicNum")
改为
$result=mysql_query("SELECT * FROM Images WHERE PicNum={$_POST['PicNum']}")