i m going to selecting all images of step2.php when i selecting it shows me all but in step3.php it show me only 1 image. is the any problem with code




Step2.php

<div style="clear:both" id="images">
<?php
$imgSrc = mysql_query("SELECT * FROM camp_images WHERE camp_id='".$cobj->id."' ") or die(mysql_error());
$totalImages = mysql_num_rows($imgSrc);
if($totalImages<1){
?>
<img src="images/DefaultVideoThumbnail.jpg" alt="" id="image" width="100" style="float:left;
<?php if($cobj->pitch_media==0 || $cobj->pitch_media==1) echo 'display:none'; ?>">
<?php
}
while($imageSrc = mysql_fetch_object($imgSrc)){
?>
<img src="<?php echo $imageSrc->media_link?>" alt="" id="image" width="100" style="float:left;padding:2px;

<?php if($cobj->pitch_media==0 || $cobj->pitch_media==1) echo 'display:none'; ?>">

<?php
}

?>
</div>



step3.php


<?php if($cobj->media_link<2) echo '<img src="'.SITE_BASE.$cobj->media_link.'" alt="">';

else if ($cobj->pitch_media<1)