troubleshooting Question

PHP and returning to_char from Oracle DB

Avatar of g_currier
g_currierFlag for Germany asked on
Oracle DatabasePHP
4 Comments1 Solution728 ViewsLast Modified:
Hi,

I am trying to return a date from an oracle DB (10g) using PHP.  I'm not having much luck.
I've different variations of the code displayed but nothing works.  The datatype used in the DB is of course "Date".  When I try to return the date (simply) I get the timestamp tacked on to it.  As this is a request for a date to show as a birthday, the timestamp is not necessary (or used).  Here is what I have ended up with that doesn't work:


(I understand - sort of - why PHP returns an "Undefined index" error.  It's is looking for the value in the SELECT line of the sql statement and not finding it - I think). I appreciate any suggestions.
Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros