<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PHP Forums - date n time]]></title>
	<link rel="self" href="http://www.phpforums.org/feed-atom-topic27.xml"/>
	<updated>2010-08-06T07:22:59Z</updated>
	<generator>PunBB</generator>
	<id>http://phpforums.org/topic27-date-n-time.html</id>
		<entry>
			<title type="html"><![CDATA[Re: date n time]]></title>
			<link rel="alternate" href="http://phpforums.org/post71.html#p71"/>
			<content type="html"><![CDATA[<p>You can use the NOW() function of mysql, and set the field data type as DATETIME</p>]]></content>
			<author>
				<name><![CDATA[aneeshrp]]></name>
				<uri>http://phpforums.org/user46.html</uri>
			</author>
			<updated>2010-08-06T07:22:59Z</updated>
			<id>http://phpforums.org/post71.html#p71</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: date n time]]></title>
			<link rel="alternate" href="http://phpforums.org/post62.html#p62"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[talviruusu]]></name>
				<uri>http://phpforums.org/user41.html</uri>
			</author>
			<updated>2010-07-01T22:33:01Z</updated>
			<id>http://phpforums.org/post62.html#p62</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[date n time]]></title>
			<link rel="alternate" href="http://phpforums.org/post56.html#p56"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tim]]></name>
				<uri>http://phpforums.org/user27.html</uri>
			</author>
			<updated>2010-04-02T00:19:18Z</updated>
			<id>http://phpforums.org/post56.html#p56</id>
		</entry>
</feed>

