Re: [PHP-DB] MySQL Date insert

2003-08-14 Thread Budelak
: Monday, July 28, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySQL Date insert Hello, I have the following PHP code: $date = date(Y-m-d H:i:s); $result = mysql_query(INSERT INTO Boats (Make, Model, Serial, Stock, Extension, Cust_Name, Store, Date) VALUES

Re: [PHP-DB] MySQL Date insert

2003-08-10 Thread John W. Holmes
Budelak wrote: This is how I implemented a similar though not exactly the same problem: $tempdate = gmdate(d-m-Y); $insertSQL = sprintf(INSERT INTO gennews (newsdate, newsheadline, country, newsfull) VALUES ($tempdate, %s, %s, %s); So, you only have to change the format of the gmdate what you

[PHP-DB] MySQL Date insert

2003-07-28 Thread Andrew D. Luebke
Hello, I have the following PHP code: $date = date(Y-m-d H:i:s); $result = mysql_query(INSERT INTO Boats (Make, Model, Serial, Stock, Extension, Cust_Name, Store, Date) VALUES ('$make', '$model', '$serial', '$stock', '$extension', '$name', '$store', '$date')

RE: [PHP-DB] MySQL Date insert

2003-07-28 Thread Hutchins, Richard
:17 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySQL Date insert Hello, I have the following PHP code: $date = date(Y-m-d H:i:s); $result = mysql_query(INSERT INTO Boats (Make, Model, Serial, Stock, Extension, Cust_Name, Store, Date) VALUES

RE: [PHP-DB] MySQL Date insert

2003-07-28 Thread Andrew D. Luebke
and see if you still get the error. -Original Message- From: Andrew D. Luebke [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySQL Date insert Hello, I have the following PHP code: $date = date(Y-m-d H:i:s

Re: [PHP-DB] MySQL Date insert

2003-07-28 Thread CPT John W. Holmes
From: Andrew D. Luebke [EMAIL PROTECTED] $date = date(Y-m-d H:i:s); $result = mysql_query(INSERT INTO Boats (Make, Model, Serial, Stock, Extension, Cust_Name, Store, Date) VALUES ('$make', '$model', '$serial', '$stock', '$extension', '$name', '$store',

RE: [PHP-DB] MySQL Date insert

2003-07-28 Thread NIPP, SCOTT V (SBCSI)
here. Try changing the field name and give that a shot. I think I am actually right here though. Scott -Original Message- From: Hutchins, Richard [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] MySQL Date insert Don't know about

Re: [PHP-DB] MySQL Date insert

2003-07-28 Thread jeffrey_n_Dyke
: Subject: [PHP-DB] MySQL Date insert 07/28/2003 02:16

Re: [PHP-DB] MySQL Date insert

2003-07-28 Thread michele.petrovsky
; Michele Petrovsky - Original Message - From: Andrew D. Luebke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 2:16 PM Subject: [PHP-DB] MySQL Date insert Hello, I have the following PHP code: $date = date(Y-m-d H:i:s); $result = mysql_query

Re: [PHP-DB] MySQL Date insert

2003-07-28 Thread CPT John W. Holmes
From: NIPP, SCOTT V (SBCSI) [EMAIL PROTECTED] I actually think I know part of this answer... I don't think you need to define a variable to insert into your date field. Inserting an empty value into this filed will populate the field in the database with the current time, which it appears

Re: [PHP-DB] MySQL Date insert

2003-07-28 Thread Andrew D. Luebke
John, thanks, now I feel stupid, it's always the silly little things that get you. You were right, when I added the date to the existing insert I forgot to put the ending parentheses back in. Thanks for the help. Andrew. At 11:26 AM 7/28/2003, CPT John W. Holmes wrote: From: Andrew D. Luebke