hello visters
i am a php code for showpic i have a problem that in this code witch value we give. the showpic.php page show every picture size same like if i give the value 1024 by 768 in this code the when we open this picture in showpic.php it show's with 1024 by 768 i want to make this code. that this code show defult size of picture
<?
include('dbconnect.php');
$pid = $_GET['pid'];
$query = "SELECT dcount FROM data_count WHERE did = $pid";
$res = mysql_query($query,$dblink) or die(" 1 - Contact with admin.");
if(mysql_num_rows($res)>0)
{
$row = mysql_fetch_row($res);
$dcount = $row[0] + 1;
$query = "UPDATE data_count SET dcount=$dcount WHERE did = $pid";
$res = mysql_query($query,$dblink) or die("2 - Contact with admin.");
}
else
{
$query = "INSERT INTO data_count(did,dcount) VALUES($pid,1)";
$res = mysql_query($query,$dblink) or die("3 - Contact with admin.");
}
mysql_close($dblink);
?>
<html>
<head>
<title>..::Hotwallpapers4u.com::..Latest hollywood bollywood xp 3d wallpaper cartoons nature games sexy hot wallpapers..</title>
<style type="text/css">
<!--
.style1 {color: #FF3300}
-->
</style>
</head>
<body>
<p>
<?
include('showpicadd.html');
?>
</p>
<table>
<tr>
<td>
<?
include('dbconnect.php');
$PicNum = $_GET['pid'];
$result=mysql_query("SELECT pic FROM data WHERE did=$PicNum") or die("Can't perform Query");
$row=mysql_fetch_row($result);
?>
<img src="../../unavailable.html" width="1024" height="768"/>
<?
mysql_close($dblink);
?>
</td>
<td>
</td>
</table>
<table>
<tr>
<td><?
?></td>
</tr>
</table>
</body>
</html>
Aqua-Soft Forums