Guest User

Untitled

a guest
Dec 16th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <?
  2. if(!empty($_POST['ch'])) {
  3. echo '<table id="rowclick5" class="table table-striped table-hover table-responsive cursor">
  4. <tr style="background-color: #f9f9f9;">
  5. <th></th>
  6. <th><center>Наименование</center></th>
  7. <th><center>Цена грн.</center></th>
  8. <th><center>Качество деталей</center></th>
  9. </tr>';
  10. foreach ($_POST['ch'] as $item) {
  11. $query = mysqli_query($CONNECT, "SELECT * FROM `prices` WHERE `id` = '$item'");
  12. while ($result = mysqli_fetch_assoc($query)) {
  13. echo '<tr>
  14. <td><center><i class="fa fa-times" aria-hidden="true"></i></center></td>
  15. <td>'.$result['name'].'</td>
  16. <td id="priceor"><center>'.$result['priceor'].'</center></td>
  17. <td id="pricecopy"><center>'.$result['pricecopy'].'</center></td>
  18. <td>
  19. <center>
  20. <select class="form-control" id="selch">
  21. <option value="orig" selected>Оригинал</option>
  22. <option value="copy">Копия</option>
  23. </select>
  24. </center>
  25. </td>
  26. </tr>';
  27. }
  28. }
  29. echo '</table>';
  30. } else {
  31. echo 'Вы не выбрали ни одной позиции.';
  32. }
  33. ?>
Add Comment
Please, Sign In to add comment