Jump to content


Photo

Distorting images


  • Please log in to reply
4 replies to this topic

#1 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 15 July 2006 - 02:59 PM

Hi,

Does any know why my images have distorted?
[url]http://www.spirestest.com/nicky/gallery/select_edit.php[\url]

I have uploaded them into a folder on the server.
I have also (on upload) resized the images to 150 height.
when i display the thumbnails they come out distorted.

Is there any way of fixing this?


<?php
include('db.php');
echo $id;
$arrErrors = array();

if (!empty($_POST['submit'])) {
	if ($_POST['description']=='') 
		$arrErrors['description'] = 'Description.';
	if ($_POST['name']=='') 
		$arrErrors['name'] = 'Name.';
	
	
	if (count($arrErrors) == 0) {
		
		if (isset($_GET['id'])) {
	    $name = $_GET['name'];
		$description=$_GET['description'];
		$id=$_GET['id'];
		}
		
		
		

		
		
		$result = mysql_query("UPDATE ***** SET description = '$description', name = '$name' WHERE  id = '$id' LIMIT 1") or die(mysql_error());
			if ($result) {
				$link_home = '<div class="error">Your details have been updated.<br><a href="select_edit.php" class="link">Return to edit list</a>.';
				
				} else {
					$UNtaken = '<div class="error">Sorry, Your details have not been updated.';
				}
				
				
		}  else {
			if (empty($title) || empty($art)) {
				$strError = '<div class="error">error';
       			foreach ($arrErrors as $error) {
           				 $strError .= "<li>$error</li>";
       			 }
       		 $strError .= '</div>';
			}
			
		
		
		}

}


		

?>


<html>
<head>
<title>New News</title>

<link href="../css/nicky.css" rel="stylesheet" type="text/css">
</head>

<body>

<center>
<a href="select_edit.php" class="link">back</a>
<table width="250px" bgcolor="#EEEEEE" class="TLRB_border">
<tr>
<td>
	<form name="form1" method="post" action="<?php echo $PHP_SELF; ?>">
	<?php echo "<INPUT type='hidden' name='id' value='".$_POST['id']."'>"; ?>				
	<table width="190px" align="center" bgcolor="#FFFFFF">
	<tr>
		<td colspan="2">Edit News</td>
	</tr>
	<tr>
		<td class="loginBox_text">Name:</td>
	<td>
		<input name="name" Type="text" id="name" size="15" value="<?php echo $_POST['name']?>">
	</td>
	</tr>
	<tr>
		<td class="loginBox_text">Description:</td>
	<td>
		<textarea name="description" cols="30" wrap="PHYSICAL" id="description" value="<?php echo $_POST['description']?>"></textarea>	
	</td>
	</tr>
	<td colspan="2" align="right">
		<input type="submit" name="submit" value="Submit">
	</td>
	</table>
	</form>	
</td>
<tr>
<td>

<center>
<?php echo $strError; ?>
<?php echo $UNtaken; ?>
<?php echo $link_home; ?>
<?php echo $hitch; ?>
<?php echo $final; ?>
</center>



</td>
</tr>
</tr>
</table>

</center>

</body>
</html>

Thanks for your help.  :D
How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 03:10 PM

They look fine to me...

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 15 July 2006 - 03:11 PM

Really?

On my screen they have come out pixellated. when you click them to enlarge they come out ok.

Maybe a monitor issue

How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com

#4 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 03:14 PM

Yea, they look like they're just resized versions of the bigger pictures.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#5 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 15 July 2006 - 03:16 PM

OK, Cool
How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users