How to get your question answered on irc by example

n0other: Hello, I have a field publish_to, I want to select only those entries, where publish_to is not older than today, publish_to contains for example ’2005-05-30′, I do: SELECT * FROM table WHERE (publish_to – “‘.date(‘Y-m-d’) .’”) > 0; (php date function), but that doesnt work, how should I implement this, I cannot change date structure

Notice the detailed question with example. This shows people exactly what the problem is and that you have taken the time to try to solve it yourself.

firewire: so you want where it’s today and newer?
firewire: where publish_to >= curdate()

A quick response prior to testing

n0other: oh :}

Now after a quick test a final response letting everyone know that the problem was solved

n0other: works perfectly, thanks again
firewire: :)

It’s little times like these that make helping people on irc so much fun.

One Comment

  1. n0other says:

    Hehe, now this is nice! Guess I’m a celebrity now :)

Leave a Reply