Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <?php
  2. include 'private/sql/sql_connect_user.php';
  3.  
  4. $SQL2 = "SELECT * FROM cust_inventory where ean = '$ISBN13' and deleted=0 and sold=0";
  5. $result2 = mysql_query($SQL2) or die(mysql_error());
  6.  
  7.  
  8. while($row2 = mysql_fetch_array($result2))
  9. {
  10. $list_id = $row2['id'];
  11. $Cust_id = $row2['cust_id'];
  12. $cust_price = $row2['cust_price'];
  13. $condition = $row2['book_rating'];
  14. include 'private/condition_switch.php';
  15.  
  16. $userSelect = "SELECT username FROM login_cred WHERE cust_id = '$Cust_id'";
  17. $result3 = mysql_query($userSelect);
  18.  
  19. while($row3 = mysql_fetch_array($result3))
  20. {
  21. $username = $row3['username'];
  22. }
  23.  
  24.  
  25. echo "
  26. <table cellpadding='0' cellspacing='0' border='0' class='content_wrapper1_b'>
  27. <tr><td class='content_wrapper_r'>
  28. <div class='content_wrapper_t'>
  29. <div class='content_wrapper_l'>
  30. <div class='content_wrapper_tl'>
  31. <div class='content_wrapper_tr'>
  32. <div class='content_wrapper_bl'>
  33. <div class='content_wrapper_br'>
  34.  
  35. <div class='width_100'>
  36.  
  37. <!--Edit In Here BOX 2-->
  38.  
  39. <table border='0px' width='100%' cellspacing='0' cellpadding='0'>
  40. <tr height='30px' style='text-align:left; font-weight:bold;'><td style='width:30%;'>Seller</td><td style='width:15%;'>Rating</td><td style='width:25%;'>Condition</td><td style='width:20%;'>Distance</td><td style='width:15%;'>Price</td></tr>
  41. <tr><td>$username</td><td>5 Star</td><td>$condition</td><td>5 miles</td><td>$cust_price</td></tr>
  42. </table>
  43.  
  44. <!--I recommend placing things inside the table as seen above. Please use that format as much as possible-->
  45. <!--SPACER-->
  46. <div style='padding:0px 0px 4px 0px;'><img src='images/spacer.gif' border='0' alt='' width='1' height='1'></div>
  47. <!--SPACER-->
  48.  
  49. <!--THIS IS THE BUTTON-->
  50. <table cellpadding='0' cellspacing='5' border='0'>
  51. <tr>
  52. <td>
  53. <table border='0' width='100%' cellspacing='0' cellpadding='2'>
  54. <tr>
  55. <td align='right'><a href='user_listing.php?ISBN13=$EAN&cust_id=$Cust_id&username=$username&user_price=$cust_price&id=$list_id' ><img src='images/button_view_listing.gif' border='0' alt='' class='btn1'></a><td>
  56. </tr>
  57. </table>
  58. </td>
  59. </tr>
  60. </table>
  61. <!--END BUTTON-->
  62.  
  63.  
  64.  
  65.  
  66. <!--End Edit In Here BOX 2-->
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71.  
  72. </div>
  73. </div>
  74. </div>
  75. </td></tr>
  76. </table>";
  77. }
  78.  
  79. mysql_close($con);
  80. ?>
Add Comment
Please, Sign In to add comment