<img src="http://your-site.com/some-image.jpg" alt="Some Image">
http//www.some-site.com/image.jpg
/image.jpg
there is no such url for my image.....query get executed for showing images one by one...thats m giving only path for images
while ($row=mysql_fetch_array($result)) {$regid=$row[0]; $blow=$row[1]; if($regid) {$objectIndex = "PHT"; $whereclause = " WHERE RegID=".$regid; $otherclause = ""; $fields = "PhotoID, BlowUp, DisplayType, RegID"; //$result_array = _getRows($objectIndex, $fields, $whereclause, $otherclause); $result_array="select ".$fields. "from" .$objectIndex."where" .$whereclause; $blowup_indx = 1; $regid_indx = 3; for($i=0;$i<count($result_array);$i++) { $photo="<img src='" . _getBaseUrl() . "/photographs/" . $result_array[$i][$blowup_indx] . "' border=1 width=100 height=100>"; $str.="<tr><td>$regid</td><td>$photo</td></tr>"; }}}
this is part of my code...i did it as you suggest and the image whose path i specified displayed properly also...but the thing is how yo display all photos as m using for loop....cz it is not related to one image...here is my part of the code...pls do needful...its very urgentwhile ($row=mysql_fetch_array($result)) {$regid=$row[0]; $blow=$row[1]; if($regid) {$objectIndex = "PHT"; $whereclause = " WHERE RegID=".$regid; $otherclause = ""; $fields = "PhotoID, BlowUp, DisplayType, RegID"; //$result_array = _getRows($objectIndex, $fields, $whereclause, $otherclause); $result_array="select ".$fields. "from" .$objectIndex."where" .$whereclause; $blowup_indx = 1; $regid_indx = 3; for($i=0;$i<count($result_array);$i++) { $photo="<img src='" http://192.168.0.2/site/inmatch"/photographs/" . $result_array[$i][$blowup_indx] . "' border=1 width=100 height=100>"; $str.="<tr><td>$regid</td><td>$photo</td></tr>"; }}}