ausghostdog

Untitled

May 15th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!--
  3. Supremacy4T by 4Templates | http://www.4templates.com/free/ | @4templates
  4. Licensed under the Creative Commons Attribution 3.0 License
  5. -->
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>Home</title>
  10.  
  11. <link href="http://fonts.googleapis.com/css?family=Abel" rel="stylesheet" type="text/css" />
  12. <link href="../styles/default.css" rel="stylesheet" type="text/css" media="all" />
  13. </head>
  14. <body>
  15. <div id="wrapper">
  16. <div id="wrapper-bgtop">
  17. <div id="wrapper-bgbtm">
  18. <div id="header">
  19. <div id="logo">
  20. <h1><a href="#">Barzzar Ceramics</a></h1>
  21. <p>Contempary desings, old school service</p>
  22. </div>
  23. <div id="search">
  24.  
  25. </div>
  26. </div>
  27. <div id="menu">
  28.  
  29. <ul>
  30. <li><a href='../index.php' accesskey='1' title='Index'><span>Home</span></a></li>
  31. <li><a href='catalogue.php' accesskey='4' title=''><span>catalogue</span></a></li>
  32. <li><a href='#' accesskey='3' title=''><span>cart</span></a></li>
  33. <li><a href='changepassword.php' accesskey='4' title=''><span>change password</span></a></li>
  34. <li><a href='#' accesskey='4' title=''><span>View orders</span></a></li>
  35. <li><a href='logout.php' accesskey='4' title=''><span>logout</span></a></li>
  36. </ul>
  37.  
  38. <!-- close of changed nav-->
  39. <!-- not logged session nav working to this point -->
  40. </ul>
  41. </div>
  42.  
  43.  
  44. <div id="page">
  45. <div id="content">
  46. <div class="post">
  47.  
  48. <div class="entry">
  49. <p class="img-margin">&nbsp;</p>
  50.  
  51. <?php
  52.  
  53. require_once "../database/dbconn.php";
  54. $conn = connect();
  55. if ($conn)
  56.  
  57.  
  58. {
  59. $query = "SELECT * FROM tblproducts";
  60. $result = mysql_query($query) or die(mysql_error());
  61.  
  62. while ($rows = mysql_fetch_assoc($result)){
  63. echo"<form method='post' action='displayinfo.php'>
  64. <table width='500'>
  65.  
  66. <tr>
  67. <td>product name</td>
  68. <td>{$rows['Product_name']}</td>
  69. </tr>
  70.  
  71. <input type='hidden' name='prodname' value='{$rows['Product_name']}'/>
  72.  
  73. <tr>
  74. <td>Product descroption</td>
  75. <td>{$rows['Product_descroption']}</td>
  76. </tr>
  77.  
  78. <tr>
  79. <td>Product size</td>
  80. <td>{$rows['Product_size']}</td>
  81. </tr>
  82.  
  83. <tr>
  84. <td>Product price</td>
  85. <td>{$rows['Product_price']}</td>
  86. </tr>
  87.  
  88. <tr>
  89. <td>qty </td>
  90. <td><input type='text' name='quantity' /></td>
  91. </tr>
  92.  
  93. <tr>
  94. <td></td>
  95. <td><input type='submit' value='submit' /></td>
  96. </tr>
  97.  
  98. </table>
  99. </form>";
  100. }
  101. ?>
  102.  
  103.  
  104. }
  105.  
  106. ?>
  107.  
  108. <?php
  109.  
  110. }
  111.  
  112.  
  113.  
  114. ?>
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div id="footer" class="container">
  129. <p>&copy; Your Website Name&nbsp;&nbsp;|&nbsp;&nbsp;Supremacy4T by <a href="http://www.4templates.com/free/">4Templates</a>&nbsp;&nbsp;|&nbsp;&nbsp;Photos by <a href="http://fotogrph.com/">Fotogrph</a></p>
  130. </div>
  131. </body>
  132. </html>
Advertisement
Add Comment
Please, Sign In to add comment