<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PHP Forums - date n time]]></title>
		<link>http://phpforums.org/topic27-date-n-time.html</link>
		<description><![CDATA[The most recent posts in date n time.]]></description>
		<lastBuildDate>Fri, 06 Aug 2010 07:22:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: date n time]]></title>
			<link>http://phpforums.org/post71.html#p71</link>
			<description><![CDATA[<p>You can use the NOW() function of mysql, and set the field data type as DATETIME</p>]]></description>
			<author><![CDATA[null@example.com (aneeshrp)]]></author>
			<pubDate>Fri, 06 Aug 2010 07:22:59 +0000</pubDate>
			<guid>http://phpforums.org/post71.html#p71</guid>
		</item>
		<item>
			<title><![CDATA[Re: date n time]]></title>
			<link>http://phpforums.org/post62.html#p62</link>
			<description><![CDATA[<div class="codebox"><pre><code>mysql_query(&quot;INSERT INTO info set info.username = $user, info.email = $email...info.created = NOW()&quot;);</code></pre></div><p>I usually do something like that. I don&#039;t save the time to any variable like you are suggesting. I just fill it on the query. Type of the column is Datetime.</p>]]></description>
			<author><![CDATA[null@example.com (talviruusu)]]></author>
			<pubDate>Thu, 01 Jul 2010 22:33:01 +0000</pubDate>
			<guid>http://phpforums.org/post62.html#p62</guid>
		</item>
		<item>
			<title><![CDATA[date n time]]></title>
			<link>http://phpforums.org/post56.html#p56</link>
			<description><![CDATA[<p>I know that my question may sound stupid, but I&#039;ll ask anyway...</p><div class="codebox"><pre><code>$username = $_POST[&#039;username&#039;];
$email = $_POST[&#039;email&#039;];
$password = md5($_POST[&#039;password&#039;]);
$password2 = md5($_POST[&#039;password2&#039;]);
$location = $_POST[&#039;location&#039;];
$genre = $_POST[&#039;genre&#039;];
$date =</code></pre></div><p>what should I write to insert date and time in the database and what type should I specify on the database side?</p><p>thanks a lot <img src="http://phpforums.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (tim)]]></author>
			<pubDate>Fri, 02 Apr 2010 00:19:18 +0000</pubDate>
			<guid>http://phpforums.org/post56.html#p56</guid>
		</item>
	</channel>
</rss>

