Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'private/sql/sql_connect_user.php';
- $SQL2 = "SELECT * FROM cust_inventory where ean = '$ISBN13' and deleted=0 and sold=0";
- $result2 = mysql_query($SQL2) or die(mysql_error());
- while($row2 = mysql_fetch_array($result2))
- {
- $list_id = $row2['id'];
- $Cust_id = $row2['cust_id'];
- $cust_price = $row2['cust_price'];
- $condition = $row2['book_rating'];
- include 'private/condition_switch.php';
- $userSelect = "SELECT username FROM login_cred WHERE cust_id = '$Cust_id'";
- $result3 = mysql_query($userSelect);
- while($row3 = mysql_fetch_array($result3))
- {
- $username = $row3['username'];
- }
- echo "
- <table cellpadding='0' cellspacing='0' border='0' class='content_wrapper1_b'>
- <tr><td class='content_wrapper_r'>
- <div class='content_wrapper_t'>
- <div class='content_wrapper_l'>
- <div class='content_wrapper_tl'>
- <div class='content_wrapper_tr'>
- <div class='content_wrapper_bl'>
- <div class='content_wrapper_br'>
- <div class='width_100'>
- <!--Edit In Here BOX 2-->
- <table border='0px' width='100%' cellspacing='0' cellpadding='0'>
- <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>
- <tr><td>$username</td><td>5 Star</td><td>$condition</td><td>5 miles</td><td>$cust_price</td></tr>
- </table>
- <!--I recommend placing things inside the table as seen above. Please use that format as much as possible-->
- <!--SPACER-->
- <div style='padding:0px 0px 4px 0px;'><img src='images/spacer.gif' border='0' alt='' width='1' height='1'></div>
- <!--SPACER-->
- <!--THIS IS THE BUTTON-->
- <table cellpadding='0' cellspacing='5' border='0'>
- <tr>
- <td>
- <table border='0' width='100%' cellspacing='0' cellpadding='2'>
- <tr>
- <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>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!--END BUTTON-->
- <!--End Edit In Here BOX 2-->
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </td></tr>
- </table>";
- }
- mysql_close($con);
- ?>
Add Comment
Please, Sign In to add comment