<link rel="stylesheet" href="css/autorization.css">
Registration.scss
идете из map. Посмотрите на папку где лежит autorization.css там будет лежать файл с картой или в конце самого файла комментарий в котором будет map.<?php
$checked = 5;
$count = 5;
for($i = 1; $i <= $count; $i++) {
$isChecked = $i == $checked ? 'checked' : '';
echo "
<input class='rating-input' id='mod{$i}' name='radio-rating' type='radio' value='{$i}' {$isChecked}>
<label class='rating-star' for='mod{$i}' ></label>
";
}
$checked = 5;
$count = 5;
$inputs = '';
for($i = 1; $i <= $count; $i++) {
$checked_attr = $i == $checked ? ' checked' : '';
$inputs .= '<input class="rating-input" id="mod' . $i . '" name="radio-rating" type="radio" value="' . $i . '"' . $checked_attr . '>';
$inputs .= '<label class="rating-star" for="mod' . $i . '" ></label>';
}
echo '
<div class="order_right">
<div class="wrap_stars">
<form class="form-rating" method="POST">
<fieldset>
<legend></legend>
<div class="rating-group" id="el_555' . $row["products_id"] . '">
' .$inputs . '
</div>
</fieldset>
<div class="count_block">
<!-- Статистика -->
<ul class="count" >рейтинг : ' . round($row["rating"], 1 ) . '</ul>
</div>
</form>
</div>
</div>
</li>
</div>
';
<?php $checked = 5;
$count = 5;
?>
<?php for($i = 1; $i <= $count; $i++): ?>
<?php if($i == $checked):?>
<input class="rating-input" id="mod<?=$i?>'" name="radio-rating" type="radio" value="<?=$i?>" checked>
<label class="rating-star" for="mod<?=$i?>" ></label>
<?php else:?>
<input class="rating-input" id="mod<?=$i?>'" name="radio-rating" type="radio" value="<?=$i?>">
<label class="rating-star" for="mod<?=$i?>" ></label>
<?php endif;?>
<?php endfor;?>
$result = "SELECT stars_id, round(AVG(val),1) as average FROM stars GROUP BY stars_id";
$data = mysqli_query($connectBD, $result);
while ($row = mysql_fetch_assoc($data)) {
$stars[$row['stars_id']] = $row['average'];
}
select g.*, round(AVG(val),1) as stars FROM goods g, stars s WHERE stars_id=g.id GROUP BY g.id