Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="w3ls_mobiles_grid_right_grid3">
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = '';
- $dbname = 'products';
- $conn = mysqli_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
- mysqli_select_db($conn, $dbname);
- mysqli_set_charset($conn, 'utf8');
- $result = mysqli_query($conn, "SELECT * FROM items");
- while ($row = mysqli_fetch_assoc($result))
- { ?>
- <div class="col-md-4 agileinfo_new_products_grid agileinfo_new_products_grid_mobiles">
- <div class="agile_ecommerce_tab_left mobiles_grid">
- <div class="hs-wrapper hs-wrapper2">
- <img src="images/<?php echo $row['image']; ?>.jpg" alt=" " class="img-responsive" />
- <div class="w3_hs_bottom w3_hs_bottom_sub1">
- <ul>
- <li>
- <a href="#" data-toggle="modal" data-target="#myModal8"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span></a>
- </li>
- </ul>
- </div>
- </div>
- <h5><a href="single.html"><?php echo $row['itemname']; ?></a></h5>
- <div class="simpleCart_shelfItem">
- <p><i class="item_price"><?php echo $row['descr']; ?></i></p>
- <p><span>$980</span> <i class="item_price">$ <?php echo $row['price']; ?></i></p>
- <form action="#" method="post">
- <input type="hidden" name="cmd" value="_cart" />
- <input type="hidden" name="add" value="1" />
- <input type="hidden" name="w3ls_item" value="Asus Laptop" />
- <input type="hidden" name="amount" value="<?php echo $row['price']; ?>"/>
- <button type="submit" value="submit" class="w3ls-cart">Add to cart</button>
- </form>
- </div>
- </div>
- </div>
- <?php }?>
- </div>
- <? endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement