Jump to content

Problem confirming if bids removed?


homer09001

Recommended Posts

im writing a standalone script to work with phpvms, currently im trying to get it to return an error message if a bid can't be removed, but for some reason its not working correctly:

if(SchedulesData::removeBid($bidid))
{
	echo "Bid Succesfully Removed";
}
else
{
	echo '<font color="red">Failed to Remove Bid, Error Code: RB001</font>';
}

The problem im having is that its returning the error message when the bid is removed or when its not, where as i use a identical check when adding bids:

if(SchedulesData::addBid($pilotid, $brief_id))
{
	echo "Bid Added!";
}
else
{
	echo '<center><font Color="red">Failed to Add Bid, Error Code: AB001</font></center>';
}

and that works as it should?

any ideas why my remove bid check isn't working?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...