Author Topic: Help me in PHP- Oracle  (Read 1685 times)

0 Members and 1 Guest are viewing this topic.

Offline balasunTopic starter

  • Irregular
  • Posts: 8
    • View Profile
Help me in PHP- Oracle
« on: April 20, 2009, 01:01:38 PM »
Hello all,

 I need to excute the oracle query like Below:
"begin
     myfriends_data.get_multi_rows_details(:StartDate,
                                          :EndDate,
                                          :filed3,
                                          :filed4,
                                           );
end";

 I give the StartDate value as '01/01/2009';

 But when i execute the query,i got the error like Below:

  ORA-01843: not a valid month
ORA-06512: at line 2

 Pls help me how to solve the problem.

Thanks,
« Last Edit: April 20, 2009, 01:12:59 PM by balasun »

Offline roydude

  • Irregular
  • Posts: 5
    • View Profile
Re: Help me in PHP- Oracle
« Reply #1 on: November 20, 2009, 06:17:48 AM »
Hi Balasun,

This is an old topic, but I thought I'd post a reply in case someone needs it at some stage.

At a guess I'd say you need to use a date format mask around the date you're supplying -

   to_date('21/02/2009', 'DD/MM/YYYY')