Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if(!empty($_POST['ch'])) {
- echo '<table id="rowclick5" class="table table-striped table-hover table-responsive cursor">
- <tr style="background-color: #f9f9f9;">
- <th></th>
- <th><center>Наименование</center></th>
- <th><center>Цена грн.</center></th>
- <th><center>Качество деталей</center></th>
- </tr>';
- foreach ($_POST['ch'] as $item) {
- $query = mysqli_query($CONNECT, "SELECT * FROM `prices` WHERE `id` = '$item'");
- while ($result = mysqli_fetch_assoc($query)) {
- echo '<tr>
- <td><center><i class="fa fa-times" aria-hidden="true"></i></center></td>
- <td>'.$result['name'].'</td>
- <td id="priceor"><center>'.$result['priceor'].'</center></td>
- <td id="pricecopy"><center>'.$result['pricecopy'].'</center></td>
- <td>
- <center>
- <select class="form-control" id="selch">
- <option value="orig" selected>Оригинал</option>
- <option value="copy">Копия</option>
- </select>
- </center>
- </td>
- </tr>';
- }
- }
- echo '</table>';
- } else {
- echo 'Вы не выбрали ни одной позиции.';
- }
- ?>
Add Comment
Please, Sign In to add comment