how can i create automatically tumbling .. I need when i upload original image automatically create thumb and add thumb ( size 200 x 200 ) in folder and insert path of thumb in database $thumb .. i need help .. any one can help me ?

if ($_POST['submit'])

mysql_select_db ($db_name,$conn);
$qur="insert into images (mid, cid, name, path, image_title, image_details, image_text, thumb, addGby, addGon) 
echo 'File Upload sussfully';
echo 'upload filed!';

<form method="post" action="Addgallery.php" enctype="multipart/form-data">

<div class="field">
<label>image : </label>
<input type="file" class="custom-file-input" name="file_upload" id="file_upload"  />

<div class="field fullwidth last">
<input type="submit" name="submit" value="upload" class="bt blue large"  />
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.