Php Help

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

DJ-Sound

VIP Member
Impact
32
okay I am programming a new and better prodjfinder.com

I am trying to figure out how to make the company listings expire on a certian date, and be able to update the expiration time also.

I know how to have the exp. date added update, etc on a MYSQL database, but how do I make it where certain sql querys do not show up after a date.

maybe like

$query = "SELECT company_name, FROM advertisers
WHERE expiration_date > Date(m,d,y) or CURDATE()


//only show companys who exp. date is greater than the current date

will this work??

Let me know if you need more information to help..

Thanks in advance!

-Ryan
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
If you use timestamps you get a numerical value for the date so you could compare them to get a range of dates, although I haven't seen it done that way and don't remember other ways to do it. But timestamps are the answer.
 
0
Close
I got it, thanks!
 
0
Close
Glad that it works.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back