note 5385 modified in date by ronabop

From: Date: Thu, 02 Nov 2000 05:32:17 +0000
Subject: note 5385 modified in date by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-7257@lists.php.net to get a copy of this message
Inserting dates into ODBC databases: I set the field in which insert the date as a char (it doesn't create trouble). I used Todd's code to start with: $today = date(" j, g, Y"); PRINT "Today is the $today <Br>"; To insert it I use odbc_exec: $save = odbc_exec ($conn , 'insert into date_query(date_field) value ('$today')'); http://www.php.net/manual/function.date.php

« previous php.notes (#7257) next »