<?php
//get_additional is a custom funcion
ob_start();
echo get_additional($tcgname,'Trades');
echo nl2br("\n");
echo '<div class="tboxout" style="background: url('$tcgimg')">';
echo '<div class="tboxin">';
$buffered = ob_get_clean();
echo $buffered;
$times = $buffered;
$imgurl = 'http://rheanna.magical-me.net/cosmos/cosmoscards/check.png';
for($i=0;$i<$times;$i++){
echo '<img src="'.$imgurl.'" />';
}
echo '</div>';
echo '</div>';
?>
I fixed what I found wrong with it, the style tags in the div, but it's still pulling an error because of this line:
echo '<div class="tboxout" style="background: url('$tcgimg')">';
The whole purpose of this code is to take an image and repeat it based on the number pulled by
echo get_additional($tcgname,'Trades');
The problem I'm having is posting a background image to the div that encases the repeating image div. Does that make sense?