【php开源代码栏目提醒】:网学会员为需要php开源代码的朋友们搜集整理了popup_img.php相关资料,希望对各位网友有所帮助!
<?
include "session.php";
include "../shared/db_connect.php";
?>
<html>
<head>
<title>浏览图象</title>
</head>
<?
$query="SELECT pic FROM articles where article_id='".$_GET['article_id']."'";
$a=my
sql_fetch_row(
mysql_query($query));
$img="../pics/".$a[0];
$size=GetImageSize($img);
$w=$size[0];$h=$size[1];
?>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onload="window.resizeTo(<?=$w?>,<?=$h?>);">
<?
echo "<img src=\"$img\" border=0 $size[3]>";
?>
</body>
</html>