Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = "select * from jelo, tip where tip_ID_tip = ID_tip order by ime_jelo";
- $run = mysqli_query($dbconnect, $query);
- if(mysqli_num_rows($run) > 0){
- while($row = mysqli_fetch_assoc($run)){
- //print_r($row);
- echo '<div class="col-sm-4 col-md-3" >
- <form method="post" action="">
- <div class="jela">
- <h4 class="text-info">'. $row['ime_jelo']. '</h4>
- <h4>' . $row['cijena_jelo'] . '</h4>
- <input type="text" name="kolicina" class="unos_kolicine" value = "1" />
- <input type="hidden" name="ime_jela" value="' .$row['ime_jelo'] . '" />
- <input type="hidden" name="cijena_jela" value="' .$row['cijena_jelo'] . '" />
- <input type="submit" name="dodaj_u_kosaricu" class="btn btn-info"
- value="Dodaj u kosaricu" />
- </div>
- </form>
- </div>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement