php help with displaying data to a table

hi guys, i am not a programming geek, just learn some programming languages during my school days.
Because i am currently creating a website to sell some items, i am changing some of the default codes inside to suit my needs.

this is the problem that i am facing,

while($products_stock_values=tep_db_fetch_array($products_stock_query)) {
if($products_stock_values[‘products_stock_quantity’] > 0){
//We only want to display rows for combinations we have on stock…
//For example the quantity can be 0 or even negative if oversold.
$rowscounter += 1;
$attributes=explode(",",$products_stock_values[‘products_stock_attributes’]);
$html_ev_out .= ‘

’;
	$total_price=$products_facts['products_price'];			
	
	foreach($attributes as $attribute) {
		$attr=explode("-",$attribute);
		
		$html_ev_out .= '<td class="td_left"><font size="1"><a target="cardpic" href="/images/singles/zx/'. $products_stock_values['products_stock_id'] .'.jpg">'.tep_values_name($attr[1]).'</font></a></td>';
		$total_price+=$attributes_price[$attr[0]][$attr[1]];
	}
	$total_price=$currencies->display_price($total_price, tep_get_tax_rate($products_facts['products_tax_class_id']));
	//$total_price=$currencies->format($total_price);
	
	$html_ev_out .= '<td class="td_center"><font size=1>'.$total_price.'</font></td>';
	$html_ev_out .= '<td class="td_right"><font size=1>'.$products_stock_values['products_stock_quantity'].'</font></td>';
}

}
$html_ev_out .= '

COLOR: RED
RARITY: RARE REMARKS: ’ . $products_stock_values[‘products_ability’] . ‘
’;

this is the website that i am creating and the coding that is involved in the pictures below.
http://www.tcgsg.com/product_info2.php?products_id=70

I have created an iframe which its pictures will changed based on the card name link.
but now i would like the column on the extreme right, the description under “remarks” will change with the picture.

any experts can advise me ?

Are you still having issues with this? I checked your website and it doesn’t seem to be they way you described.

Also, why are you gathering all rows form the db and THEN weeding out the rows that don’t have any stock. You should be doing that directly in the query with the WHERE clause.
[php]WHERE products_stock_quantity > 0 // This would be put in your query string for the db[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service