<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automatically insert Current Date and Time in MySQL table #Part – 2.2</title>
	<atom:link href="http://www.intechgrity.com/automatically-insert-current-date-and/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.intechgrity.com/automatically-insert-current-date-and/</link>
	<description>Web Development, jQuery, PHP-MySQL, AJAX, CSS, Technology and ...</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:39:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Swashata</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-91864</link>
		<dc:creator>Swashata</dc:creator>
		<pubDate>Sun, 29 Jan 2012 13:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-91864</guid>
		<description>Can you post here the schema of your database?</description>
		<content:encoded><![CDATA[<p>Can you post here the schema of your database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G.Nirmala</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-90758</link>
		<dc:creator>G.Nirmala</dc:creator>
		<pubDate>Fri, 27 Jan 2012 06:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-90758</guid>
		<description>Dear Swashata ..
Im Nirmala..
how can i update the modified date in mysql directly..for this i used to GETDATE() function but,it is updated 0000:00:00 00:00:00 like this...
Thanks in advance...</description>
		<content:encoded><![CDATA[<p>Dear Swashata ..<br />
Im Nirmala..<br />
how can i update the modified date in mysql directly..for this i used to GETDATE() function but,it is updated 0000:00:00 00:00:00 like this&#8230;<br />
Thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-89326</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Tue, 24 Jan 2012 12:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-89326</guid>
		<description>sir i&#039;m developping a project of offline parking billing system in php which stores customer arrival time inbuiltly and customer departure time and calculates time difference in hour by using current date and time and provide bill as per hour but i dont know how to save current date and time in mysql database and how to calculate hours difference between current &#039;date and time&#039; and &#039;old date and time&#039; please help me......please</description>
		<content:encoded><![CDATA[<p>sir i&#8217;m developping a project of offline parking billing system in php which stores customer arrival time inbuiltly and customer departure time and calculates time difference in hour by using current date and time and provide bill as per hour but i dont know how to save current date and time in mysql database and how to calculate hours difference between current &#8216;date and time&#8217; and &#8216;old date and time&#8217; please help me&#8230;&#8230;please</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MySQL date time arithmetic using various inbuilt functions &#124; InTechgrity</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-73625</link>
		<dc:creator>MySQL date time arithmetic using various inbuilt functions &#124; InTechgrity</dc:creator>
		<pubDate>Mon, 19 Dec 2011 13:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-73625</guid>
		<description>[...] Automatically insert date and time in MySQL tables [...]</description>
		<content:encoded><![CDATA[<p>[...] Automatically insert date and time in MySQL tables [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swashata</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-72633</link>
		<dc:creator>Swashata</dc:creator>
		<pubDate>Sat, 17 Dec 2011 13:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-72633</guid>
		<description>For that, you have to nest the CURDATE() inside YEAR() function. Use something like this

[code lang=&quot;sql&quot;]INSERT INTO table_name (year_field) VALUE (YEAR(CURDATE());[/code]

Or

[code lang=&quot;sql&quot;]INSERT INTO table_name (year_field) VALUE (YEAR(&#039;2009-11-30&#039;));[/code]</description>
		<content:encoded><![CDATA[<p>For that, you have to nest the CURDATE() inside YEAR() function. Use something like this</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO table_name (year_field) VALUE (YEAR(CURDATE());</pre>
<p>Or</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO table_name (year_field) VALUE (YEAR('2009-11-30'));</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhu</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-72161</link>
		<dc:creator>madhu</dc:creator>
		<pubDate>Fri, 16 Dec 2011 10:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-72161</guid>
		<description>Dear Swashata, 

Please reply to my mail as well. Sorry forgotten to check the notify me thread. 

thanks.</description>
		<content:encoded><![CDATA[<p>Dear Swashata, </p>
<p>Please reply to my mail as well. Sorry forgotten to check the notify me thread. </p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhu</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-72158</link>
		<dc:creator>madhu</dc:creator>
		<pubDate>Fri, 16 Dec 2011 10:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-72158</guid>
		<description>Dear Swashata,  

Really good things which you all explained.  Its really helps like myself as beginners. Well and appreciated that. 

My problem is When I am tried to use this now() function for the year, its doesnt seems to be. Need to pick up only the year. But its throw me an error like &quot;:Data truncated for column &#039;year&#039; at row 1&quot;

I am trying to use the code for to gather the clients information. So I just make it as form and post the value into php and store into mysql. The rest of the fields are working great if I use for now() but data type if i use year its gives me an error like above. 

is that possible to give me the things how to truncate if I use the year data field ? 

Thanks in advance. 

madhu
madhuramanathan@gmail.com</description>
		<content:encoded><![CDATA[<p>Dear Swashata,  </p>
<p>Really good things which you all explained.  Its really helps like myself as beginners. Well and appreciated that. </p>
<p>My problem is When I am tried to use this now() function for the year, its doesnt seems to be. Need to pick up only the year. But its throw me an error like &#8220;:Data truncated for column &#8216;year&#8217; at row 1&#8243;</p>
<p>I am trying to use the code for to gather the clients information. So I just make it as form and post the value into php and store into mysql. The rest of the fields are working great if I use for now() but data type if i use year its gives me an error like above. </p>
<p>is that possible to give me the things how to truncate if I use the year data field ? </p>
<p>Thanks in advance. </p>
<p>madhu<br />
<a href="mailto:madhuramanathan@gmail.com">madhuramanathan@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Automatically insert Current Date and Time in MySQL table #Part – 2.2 &#124; InTechgrity -- Topsy.com</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-15082</link>
		<dc:creator>Tweets that mention Automatically insert Current Date and Time in MySQL table #Part – 2.2 &#124; InTechgrity -- Topsy.com</dc:creator>
		<pubDate>Sat, 19 Feb 2011 22:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-15082</guid>
		<description>[...] This post was mentioned on Twitter by junichi_y, junichi_y. junichi_y said: Automatically insert Current Date and Time in MySQL table #Part – 2.2 &#124; InTechgrity: http://bit.ly/h43CQL [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by junichi_y, junichi_y. junichi_y said: Automatically insert Current Date and Time in MySQL table #Part – 2.2 | InTechgrity: <a href="http://bit.ly/h43CQL" rel="nofollow">http://bit.ly/h43CQL</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhan</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-14455</link>
		<dc:creator>madhan</dc:creator>
		<pubDate>Mon, 14 Feb 2011 15:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-14455</guid>
		<description>superb example it cleared a lot</description>
		<content:encoded><![CDATA[<p>superb example it cleared a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: topcentech</title>
		<link>http://www.intechgrity.com/automatically-insert-current-date-and/#comment-12477</link>
		<dc:creator>topcentech</dc:creator>
		<pubDate>Fri, 21 Jan 2011 11:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://itgimport.itgdesignbox.com/?p=204#comment-12477</guid>
		<description>Keep your post in my favourite</description>
		<content:encoded><![CDATA[<p>Keep your post in my favourite</p>
]]></content:encoded>
	</item>
</channel>
</rss>

