473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP - date format fails just in IE

scubak1w1
Hello,

I have some code that makes an OHM file to send an email based on supplied parameters I construct in the file. The filename and web server path are saved in a variable. Part of the file name and path is the current date and time in a specific format...

The date format is failing JUST in MS Internet Explorer with the following error: "Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for type date"

The PHP code it is failing on is below:
Expand|Select|Wrap|Line Numbers
  1. //define the OHMM saved file name & location based on the various parameters
  2. $parsed_OHM_file_path_and_name = "C:\logs\safety-incident-report-auto-email~".$logged_on_user."~".date('M-d-Y_H-i-s').".ohm";
  3.  

Any suggestions? I have been poking away Google for an hour or more trying to get a handle on this...

Thanks in advance:
GREG...
Mar 15 '12 #1
4 1527
Dormilich
8,658 Expert Mod 8TB
that depends on how you define the date in the query. note that the error complains about the function pg_query(), not the given line.

are you sure your webserver is a Windows machine?
Mar 15 '12 #2
Thanks...
I found the SQL string that pushed data back to PostgreSQL was the issue... but not in and of itself... it is because the data validation - neither via the Spry widgets OR my custom javascript via the OnClick on the Submit button - is firing in Internet destroyer...

I posted as a new question... If you are inclined to take a look I would much appreciate it...
Mar 22 '12 #3
Dormilich
8,658 Expert Mod 8TB
that’s why you always do server side validation.
Mar 22 '12 #4
That happens as well of course...
But I am "lazy", if you can have the user fix it right there and then, that works for me <grin>
Mar 22 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Simon Brooke | last post by:
I'm investigating a bug a customer has reported in our database abstraction layer, and it's making me very unhappy. Brief summary: I have a database abstraction layer which is intended to...
1
by: Laurence Neville | last post by:
This is regarding a change in the Short Date format under Hebrew Regional Settings, that has caused huge problems in our ASP web application. The change appears to have been introduced sometime...
6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
3
by: VivN | last post by:
I have an unbound form (Access 2000 ADP front end/SQL server backend) to collect parameters, one of which is a date. The date is being reordered to mm/dd/yyyy if it involves any day up to 12th of...
9
by: Ed Crowley | last post by:
I have a DateTimePicker control on my form that is displaying the date format in UK format (dd/mm/yy). However, in my code dtpStartDate.Value gives a date in US format, but...
20
by: andreas | last post by:
When I copy a vb.net project using date formats from one PC with a windows date format f.e. dd/mm/yyyy to another PC having a format yy/mm/dd then I get errors. How can I change for a while in the...
2
by: syntego | last post by:
We commonly use triggers to log changes to our main tables to historical log tables. In the trigger, we create a concatenated string of the old values by casting them as follows: ...
1
by: jimmy | last post by:
I'm trying to insert a date into a MySQL date column. The string i am trying to insert takes the following format: 2007-02-23 which corresponds to the date format that MySQL uses which is...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.