Sorry guys I'm real green with php here is what I have!
The code below pulls numbers from a data base which are refered to as the bidstart and bnvalue.
<td class="feat1" nowrap align="right"><?=strtoupper($lang[startbid]);?>:</td>
<td class="feat1" nowrap> <? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","bidstart"),$currency[$numb]);?> </td>
</tr>
<tr>
<td class="feat3" align="right"><?=$lang[currbid];?>:</b></td>
<td class="feat3"><? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","maxbid"),$currency[$numb]);?></td>
</tr>
<tr>
<td class="feat1" nowrap align="right"><?=strtoupper($lang[binfeat]);?>:</td>
<td class="feat1" nowrap> <? echo displayAmount(getSqlField("SELECT * FROM probid_auctions WHERE id='".$id[$numb]."'","bnvalue"),$currency[$numb]);?> </td>
I would like to have an if else statement that compares the bidstart to the bnvalue and if it is less then the bnvalue to display exactly as above showing the bidstart and the bnvalue, and if it is found that there is no bnvalue then to display as below showing only the bidstart like below!
<td class="feat1" nowrap align="right"><?=strtoupper($lang[startbid]);?>:</td>
<td class="feat1" nowrap> <? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","bidstart"),$currency[$numb]);?> </td>
</tr>
<tr>
<td class="feat3" align="right"><?=$lang[currbid];?>:</b></td>
<td class="feat3"><? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","maxbid"),$currency[$numb]);?></td>
And finally if the bidstart and the bnvalue are = to each other then I would like it to display like this showing the bnvalue only and not the bidstart
<td class="feat1" nowrap align="right"><?=strtoupper($lang[bnvalue]);?>:</td>
<td class="feat1" nowrap> <? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","bnvalue"),$currency[$numb]);?> </td>
</tr>
<tr>
<td class="feat3" align="right"><?=$lang[currbid];?>:</b></td>
<td class="feat3"><? echo displayAmount(getSqlField("SELECT FROM probid_auctions WHERE id='".$id[$numb]."'","maxbid"),$currency[$numb]);?></td>