All pastes #342958 Raw Edit

Untitled

public php v1 · immutable
·published 2007-02-06 18:02 UTC
rendered paste body
<?PHP 				$query1=mysql_query("SELECT * FROM q_startthumb WHERE id = '1'");			while($row=mysql_fetch_array($query1)) {			$id=$row['id'];			$thumbname=$row['thumbname'];						$get_image_size =  thumb/$thumbname;	  // ### Kollar av bildens bredd och höjd			$size = getimagesize("$get_image_size");                			$width = $size[0];			$height = $size[1];	?>			<script language="JavaScript">			function thumb1() {				var id = 1;		var url = "thumbnail.php?id=" + id;		props = window.open(url, "poppage", "toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=<?PHP echo"$width"; ?>, height=<?PHP echo"$height"; ?> left = 20, top = 20");		}		</script>