<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Database Manager and default datetime values in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/Database-Manager-and-default-datetime-values/m-p/11202#M11350</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't believe you are able to use a default value of NOW().&lt;/P&gt;&lt;P&gt;Rather than having two hidden form fields, I would make my INSERT statement (using PHP for the example) as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$query = "INSERT INTO table (field, messageDated) VALUES( \"".$value1."\", NOW() )";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to confess I haven't tried this yet myself, but I would be interested to hear how it works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2010 17:05:02 GMT</pubDate>
    <dc:creator>pmillman</dc:creator>
    <dc:date>2010-01-05T17:05:02Z</dc:date>
    <item>
      <title>Database Manager and default datetime values</title>
      <link>https://business.forums.bt.com/t5/Archive/Database-Manager-and-default-datetime-values/m-p/11144#M11349</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a default value put into a date/time field. I can't find a way to do this using the database manager. Can you tell me how this can be done please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2009 09:33:47 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Database-Manager-and-default-datetime-values/m-p/11144#M11349</guid>
      <dc:creator>primming</dc:creator>
      <dc:date>2009-12-31T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Database Manager and default datetime values</title>
      <link>https://business.forums.bt.com/t5/Archive/Database-Manager-and-default-datetime-values/m-p/11202#M11350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't believe you are able to use a default value of NOW().&lt;/P&gt;&lt;P&gt;Rather than having two hidden form fields, I would make my INSERT statement (using PHP for the example) as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$query = "INSERT INTO table (field, messageDated) VALUES( \"".$value1."\", NOW() )";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to confess I haven't tried this yet myself, but I would be interested to hear how it works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2010 17:05:02 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Database-Manager-and-default-datetime-values/m-p/11202#M11350</guid>
      <dc:creator>pmillman</dc:creator>
      <dc:date>2010-01-05T17:05:02Z</dc:date>
    </item>
  </channel>
</rss>

