That might be a fool question, but I need to know how to solve this: Notice: Array to string conversion in C:\xampp\htdocs\search_view.php on line 248 Why am I getting this message, what can I do to solve it?
echo'<div id="thumb">
'.$ids = array();
$ids[] = $results['idGames'];
for ($i = 0; $i < count($ids); $i++) {
$id = $ids[$i];
$v = $results['total_votes'];
$tv = $results['total_value'];
if ($v)
$rat = $tv / $v;
else
$rat = 0;
$j = $ids[$i];
$id = $ids[$i];
echo '<div class="topcontentstar">
<div id="' . $id . '" class="">';
for ($k = 1; $k < 6; $k++) {
if ($rat + 1 > $k)
$class = "" . $k . " ratings_stars_index ratings_vote";
else
$class = "" . $k . " ratings_stars_index ratings_blank";
echo '<div class="' . $class . '"></div>';
}
echo '
</div>
</div></div>;