473,804 Members | 3,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP ADODB and NLS_DATE unexpected result


Hello,
Here i am having sample program to display selected data on the browser
with Pager functionality of ADODB_Pager.

If i include the NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';
then the Date column field itself disappear from the display.
if I comment it default date will be displayed.
If i remove the ":" from the Seperator(Times tamp) and put the "." it
will work
i.e
NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'; // NG

$db->NLS_DATE_FORMA T = 'YYYY-MM-DD HH24.MI.SS'; //OK

My environment
Oracle 10.1.x
PHP 5.0X
Apache 2.x
OCi8
ADODB Latest
Browser IE 6.0

can any one have the clue,

Thanks in Advance

--Here is the working code

<?php

require_once("a dodb/adodb.inc.php") ;
require_once("a dodb/adodb-pager.inc.php") ;
session_start() ;
$db=NewADOConne ction("oci8");
// If i comment the below line works fine with default oracle date
$db->NLS_DATE_FORMA T = 'YYYY-MM-DD HH24:MI:SS';
$db->Connect("slogd b","logdb","log db");
//tried this also but bo
//$db->Execute("ALT ER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD
HH24:MI:SS'");
$sql="select ACCODE,DATEANDT IME,PATHANDFILE from logdatatbl ";
$pager=new ADODB_Pager($db ,$sql);
$pager->Render($rows_p er_page=6);
?>

Sep 22 '05 #1
0 2182

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
51397
by: sky2070 | last post by:
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')' in c:\inetpub\wwwroot\session.php on line 19 can anyone tell me what is wrong with this code??? <? // Define the Session class class Session { // Define the properties:
2
2887
by: Salim | last post by:
Hi people, keep getting this errorParse error: parse error, unexpected T_STRING in order_fns.php line 91. the code is below for the file and I've indicated line 91 <?php function process_card($card_details) { // connect to payment gateway or // use gpg to encrypt and mail or // store in DB if you really want to
3
7859
by: Harry Hudini | last post by:
Hi, I have an asp page that needs to display the string that is returned from a cgi file. As an example, if you enter http://mydomain.com/mycgi.cgi?98127398 in to a browser, it will display YES or NO I need to have my asp code query this url, get the resulting string, then act upon it (basically use the answer to display a nice big tick or a big
0
4247
by: Robert Mazur | last post by:
MySQL 5.0 alpha (binary install) on Solaris 9 -or- RedHat 8.0 mysql-connector-java-3.0.8-stable ----------------------- Is there something different going on with JDBC and the alpha version of MySQL 5.0? When trying to connect I am getting: ** BEGIN NESTED EXCEPTION **
1
2966
by: dcrespo | last post by:
Hi to all, I have functions defined in an xml-rpc server. Some functions query to a Postgres database (using adodb) and return its recordset. So, if some xml-rpc client runs the mentioned function, it will retrieve the recordset. The problem is that if a retrieved field has the Null value or the Date value (DateTime Database format), then, the retrieved recordset in the python program will have the 'None' value or the DateTime type...
62
3798
by: ashu | last post by:
hi look at this code include <stdio.h> int main(void) { int i,j=2; i=j++ * ++j * j++; printf("%d %d",i,j); return 0;
1
2333
by: Slim | last post by:
What are the pros and cons of using ADODB in ASP.NET v System.Data namespace? I not refereeing to supplying data to controls but for manipulating with code. I prefer to use ADODB, but is there any performance benifits from using System.Data namespace? thanks
2
3664
by: b00x | last post by:
I know this doesn't -exactly- match php, but its still related, and adodb doesn't have its own google group yet, so i thought I'd go generic. The problem is, I created a nice little script for Oracle using oci8 and tried to convert to db2, but ran into issues. In case you don't know what ADODB is, checkout http://adodb.sourceforge.net/ The GetAssoc, or SetFetchMode(ADODB_FETCH_ASSOC) methods to get an associative array from a DB2...
4
9966
by: Fresh_Air_Rider | last post by:
Hi In the "good old" Classic ASP days, I used to stream records from a SQL Server database out to the user's browser in CSV format by using a combination of COALESCE and the ADODB.Stream object. The trouble is that I'm not really sure how to do this in C# 2005. This was a very useful technique and if anyone could please show me how to adapt the Classic ASP code to C# 2005, I'd be very grateful indeed.
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.