GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/thumbimage.php

<?	session_start();
	include("lib/globals.php");
 	include("lib/common.php");	
 	include("lib/functions.php");
	include("lib/pager.php");
	include"lib/SimpleImage.php";
?>



<?
	   $sql_dts="select * from escort_details where id='429'";
	   $res_dtls=execute_query($sql_dts);
	   while($row_dtls=mysql_fetch_array($res_dtls))
	   {
			
			
			
			$sql_image="SELECT * FROM escort_photo where postid='".$row_dtls['id']."' ";
			$res_image=execute_query($sql_image);
			$row_image=mysql_fetch_array($res_image);
			
			
				if($row_image['picture']!="")
				{
				$image1= new SimpleImage();
				$image1->load('avtar/'.$row_image['picture']);
				$image1->resizeToWidth(250);
				$image1->resizeToHeight(350);
				$image1->save('thubigg/'.$row_image['picture']);
				
				$ins="insert into thumbbig(id,potoid,pid,pic)values('','".$row_image['id']."','".$row_image['postid']."','".$row_image['picture']."')";
				execute_query($ins);
				}
			
			
	   }
			 
		
		

?>

./BlackJoker Mini Shell 1.0