Código PHP:
<?php
include("conzt.php");
$user=$_SESSION['id_usuario'];
$sql=mysql_query("SELECT id_usuario FROM pendientes WHERE id_usuario='$user'") or (mysql_error());
$something=mysql_num_rows($sql);
if($something > '0'){
while ($mostrar = mysql_fetch_array($sql)){
echo '<table width="200" height="" border="1" bordercolor="#FF9900">';
echo '<tr>';
echo '<td>'.$mostrar['producto'].'</td>';
echo '<td>'.$mostrar['talla'].'</td>';
echo '<td>'.$mostrar['estado'].'</td>';
echo '<td>'.$mostrar['precio'].'</td>';
echo '</tr>';
echo '</table>';}}
else{ echo "No has comprado productos";}
?>