Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. $performQuery="SELECT * FROM Phones WHERE price>$_POST[x] and price <$_POST[y] || itemName='iPhone' ";
  3. if($performQuery->num_rows>0){
  4. while($row=$performQuery->fetch_assoc()){
  5. //input all of the values into the table hardcodedly into the html written here
  6. ?>
  7. <html>
  8. <head></head>
  9. <body>
  10. <table><?php
  11. echo $row["ID"];
  12. echo " - ";
  13. echo $row["itemName"];
  14. echo " - "
  15. echo $row["Model"];
  16. echo " - "
  17. echo $row["OS"];
  18. echo " - "
  19. echo $row["Price"];
  20. ?>
  21.  
  22.  
  23. <body>
  24. </html>
  25. <?php
  26.  
  27. }
  28. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement