Trying to create a mybids section that shows all the items you've bid on in the last 24 hours.
I tried doing this by creating another table, and it records everytime you bid.
So, when I create the while statement, it will show the same item multiple times, I'd like it to only show it once. Any way to do this?
Here's what the queries look like currently..
Code: Select all
$mybids="SELECT `aucid` FROM `playerbids` WHERE `pid`='$pid'";
if ($sult = mysqli_query($db,$mybids))
{
while ($bid=mysqli_fetch_row($sult))
{
$aucweps="SELECT * FROM `playermarket` WHERE `aucid`='$bid[0]' ORDER BY `aucend`";
if ($result = mysqli_query($db,$aucweps))
{
while ($row = mysqli_fetch_row($result))
{
}
}
}
}