PDA

View Full Version : AWS: browse.php is not working properly



guaranis
06-17-2004, 08:30 AM
browse.php is not working properly.

If you use
elseif($d_ar[$j]['tag'] == 'Author'){$Author[] = $d_ar[$j]['value'];}
and
if($Author[0] != ''){
echo 'Written by: ';
foreach($Author as $auth){ echo '<a href="search.php?search='.$auth.'&t=Author">'.$auth.'</a>, '; }
echo '<br />';
}
Authors from line 1 are repeated in line 2 and so on.

Also if you use use browse.php in heavy mode and add the following line
elseif($d_ar[$j]['tag'] == 'ProductDescription') {$ProductDescription = $d_ar[$j]['value'];}
The ProductDescription appears also in the lines where there is no productdescription.

Anyone has an idea on how to fix the problem in the browse.php?