mysql query questio

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

mysql query questio

Post by pelegk2 »

when i run this line from the sql query :
select * from order_color where to_days(FROM_UNIXTIME(done_date))=to_days(NOW()) order by done_date desc

everything works find
but when i do the same from php i got other results!
why is that?
thanks in advance
peleg
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What are the other results? What's wrong?

Mac
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

sorry my mistake

Post by pelegk2 »

:D
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What was the mistake? Does this mean the problem is solved?

Mac
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

yep

Post by pelegk2 »

some 1 ouched the defenitions in the config
and it accessed to the develope server instead of the production
Post Reply