<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WebPaws.com &#187; MySQL</title>
	<atom:link href="http://webpaws.com/blog/web-development/mysql-web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://webpaws.com/blog</link>
	<description>Internet Marketing and Design Services for Turnkey Web Solutions</description>
	<lastBuildDate>Thu, 10 May 2012 02:17:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Delete rows or Reset columns older than X days in MySQL</title>
		<link>http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/</link>
		<comments>http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 10:09:56 +0000</pubDate>
		<dc:creator>webpaws</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://webpaws.com/blog/?p=312</guid>
		<description><![CDATA[If you need to delete rows or reset data in columns older than X days using MySQL, then there is an easy way to do it: Deleting Rows from your table X days old: DELETE FROM mytable WHERE recorededDate < DATE_SUB(NOW(), INTERVAL 25 DAY); Resetting Columns from your table X days old: UPDATE mytable SET [&#8230;] <a class="more-link" href="http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/">&#8595; Read the rest of this entry...</a><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/">Delete rows or Reset columns older than X days in MySQL</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="linkedin_share_container" style="float:right;margin:0px 0px 10px 10px"><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete+rows+or+Reset+columns+older+than+X+days+in+MySQL&amp;summary=If+you+need+to+delete+rows+or+reset+data+in+columns+older+than+X+days+using+MySQL%2C+then+there+is+an+easy+way+to++do+it%3A%0ADeleting+Rows+from+your+table+X+days+old%3A%0A++++DELETE+FROM+mytable+WHERE+recorededDate+%3C+DATE_SUB%28NOW%28%29%2C+INTERVAL+25+DAY%29%3B%0AResetting+Columns+from+your+table+X+days+old%3A%0A++%5B%26hellip%3B%5D+%3Ca+class%3D%22more-link%22+href%3D%22http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F%22%3E%26darr%3B+Read+the+rest+of+this+entry...%3C%2Fa%3E&amp;source=WebPaws.com" onclick="return popupLinkedInShare(this.href,'console',400,570)" class="linkedin_share_button"><img src="http://webpaws.com/blog/wp-content/plugins/linkedin-share-button/buttons/01.png" alt="" /></a></div><p>If you need to delete rows or reset data in columns older than X days using MySQL, then there is an easy way to  do it:</p>
<p>Deleting Rows from your table X days old:<br />
    <code>DELETE FROM mytable WHERE recorededDate < DATE_SUB(NOW(), INTERVAL 25 DAY);</code></p>
<p>Resetting Columns from your table X days old:<br />
    <code>UPDATE mytable SET myColumn1 = 0, mycolumn2 = 0 WHERE recorededDate < DATE_SUB(NOW(), INTERVAL 14 DAY);</code></p>
<p>You could also use:<br />
    <code>INTERVAL 1 MONTH</code><br />
    <code>INTERVAL 1 YEAR</code><br />
    <code>INTERVAL 1 MINUTE</code><br />
    <code>INTERVAL 1 WEEK + INTERVAL 1 MONTH - INTERVAL 1 YEAR</code></p>
<p>NOTE: If an UPDATE statement is designed to update multiple rows, and an error is encountered attempting to update some of those rows, the entire update is canceled and any rows that had been changed are reverted to their original values. Use of the IGNORE keyword will cause the update to continue, simply skipping any rows which presented a problem. </p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/">Delete rows or Reset columns older than X days in MySQL</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
<div style="clear:both;">&nbsp;</div>
<div class="sociable">
<span class="sociable_tagline">
<strong>Take a piece of the Web from WebPaws.com:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="Facebook" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL&amp;source=WebPaws.com&amp;summary=EXCERPT" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a href="http://twitter.com/home?status=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="TwitThis" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;t=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="MySpace" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/google.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="Webnews" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/webnews.png" title="Webnews" alt="Webnews" class="sociable-hovers" /></a></li>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;title=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="eKudos" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/ekudos.png" title="eKudos" alt="eKudos" class="sociable-hovers" /></a></li>
	<li><a href="mailto:?subject=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL&amp;body=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="email" onfocus="sociable_description_link(this, 'E-mail this story to a friend!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/email.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a href="http://extension.fleck.com/?v=b.0.804&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="Fleck" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/fleck.gif" title="Fleck" alt="Fleck" class="sociable-hovers" /></a></li>
	<li><a href="http://hype.yeebase.com/submit/http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="Hype" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/hype.png" title="Hype" alt="Hype" class="sociable-hovers" /></a></li>
	<li><a href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;bm_description=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL&amp;plugin=soc" title="MisterWong" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a href="javascript:window.print();" title="Print" onfocus="sociable_description_link(this, 'Print this article!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/printer.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F312%2Fdelete-rows-or-reset-columns-older-than-x-days-in-mysql%2F&amp;=Delete%20rows%20or%20Reset%20columns%20older%20than%20X%20days%20in%20MySQL" title="YahooMyWeb" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
<span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="45" href="http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/"></fb:like></span>]]></content:encoded>
			<wfw:commentRss>http://webpaws.com/blog/312/delete-rows-or-reset-columns-older-than-x-days-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proper Date Time format for MySQL from classic ASP code</title>
		<link>http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/</link>
		<comments>http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 01:25:47 +0000</pubDate>
		<dc:creator>webpaws</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Time]]></category>

		<guid isPermaLink="false">http://webpaws.com/blog/?p=163</guid>
		<description><![CDATA[Proper date time format (ISO) for insertion into a MySQL field from classic ASP code<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/">Proper Date Time format for MySQL from classic ASP code</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="linkedin_share_container" style="float:right;margin:0px 0px 10px 10px"><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper+Date+Time+format+for+MySQL+from+classic+ASP+code&amp;summary=Proper+date+time+format+%28ISO%29+for+insertion+into+a+MySQL+field+from+classic+ASP+code&amp;source=WebPaws.com" onclick="return popupLinkedInShare(this.href,'console',400,570)" class="linkedin_share_button"><img src="http://webpaws.com/blog/wp-content/plugins/linkedin-share-button/buttons/01.png" alt="" /></a></div><p>To properly put the date and time into a MySQL date field, you need to put it into the format of:<br />
<code><br />
yyyy-mm-dd hh:mm:ss<br />
</code></p>
<p>Here is some code to do this in classic ASP for input into a MySQL table:<br />
<code><br />
Dim testdate, testmonth, testday, ISODate<br />
testdate = Request.Form("frmField5")<br />
testmonth = Right(Month(testdate),2)<br />
testday = Right(Day(testdate),2)<br />
ISODate =  Year(testdate) &#038; "-" &#038; testmonth &#038; "-" &#038; testday &#038; " " &#038; hour(testdate) &#038; ":" &#038; minute(testdate) &#038; ":" &#038; second(testdate)<br />
</code></p>
<p>The ISODate variable is in the correct format to insert in a MySQL UPDATE or INSERT SQL statement.  Below is an example SQL string to UPDATE a date field in a MySQL table:<br />
<code><br />
UPDATE myTable SET thisdate = 'ISODate' WHERE myID = 'thisID'<br />
</code></p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/">Proper Date Time format for MySQL from classic ASP code</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
<div style="clear:both;">&nbsp;</div>
<div class="sociable">
<span class="sociable_tagline">
<strong>Take a piece of the Web from WebPaws.com:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="Facebook" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code&amp;source=WebPaws.com&amp;summary=EXCERPT" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a href="http://twitter.com/home?status=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="TwitThis" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;t=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="MySpace" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/google.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="Webnews" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/webnews.png" title="Webnews" alt="Webnews" class="sociable-hovers" /></a></li>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;title=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="eKudos" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/ekudos.png" title="eKudos" alt="eKudos" class="sociable-hovers" /></a></li>
	<li><a href="mailto:?subject=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code&amp;body=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="email" onfocus="sociable_description_link(this, 'E-mail this story to a friend!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/email.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a href="http://extension.fleck.com/?v=b.0.804&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="Fleck" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/fleck.gif" title="Fleck" alt="Fleck" class="sociable-hovers" /></a></li>
	<li><a href="http://hype.yeebase.com/submit/http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="Hype" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/hype.png" title="Hype" alt="Hype" class="sociable-hovers" /></a></li>
	<li><a href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;bm_description=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code&amp;plugin=soc" title="MisterWong" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a href="javascript:window.print();" title="Print" onfocus="sociable_description_link(this, 'Print this article!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/printer.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F163%2Fproper-date-time-format-for-mysql-from-classic-asp-code%2F&amp;=Proper%20Date%20Time%20format%20for%20MySQL%20from%20classic%20ASP%20code" title="YahooMyWeb" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
<span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="45" href="http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/"></fb:like></span>]]></content:encoded>
			<wfw:commentRss>http://webpaws.com/blog/163/proper-date-time-format-for-mysql-from-classic-asp-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL &#8211; Replace Select Text within a Database Field</title>
		<link>http://webpaws.com/blog/134/mysql-replace-text-within-database-field/</link>
		<comments>http://webpaws.com/blog/134/mysql-replace-text-within-database-field/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 09:02:17 +0000</pubDate>
		<dc:creator>webpaws</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://webpaws.com/blog/?p=134</guid>
		<description><![CDATA[Update parts of a text string within a field for all records of the table<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/134/mysql-replace-text-within-database-field/">MySQL &#8211; Replace Select Text within a Database Field</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="linkedin_share_container" style="float:right;margin:0px 0px 10px 10px"><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL+%26%238211%3B+Replace+Select+Text+within+a+Database+Field&amp;summary=Update+parts+of+a+text+string+within+a+field+for+all+records+of+the+table&amp;source=WebPaws.com" onclick="return popupLinkedInShare(this.href,'console',400,570)" class="linkedin_share_button"><img src="http://webpaws.com/blog/wp-content/plugins/linkedin-share-button/buttons/01.png" alt="" /></a></div><p>Maintaining databases can be a chore, but knowing the appropriate SQL to do the job can save hours of time.  Here is a tidbit regarding changing a select string of text within a specific field of a table in a MySQL database.  You can edit 1000s of records with this one query:<br />
<code>UPDATE table SET field = REPLACE(field, 'text to be replaced', 'replacement text');</code></p>
<p>In this example, the table name is &#8220;table&#8221;, the field to find the text in is named &#8220;field&#8221;, the rest should be self explanatory.</p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/134/mysql-replace-text-within-database-field/">MySQL &#8211; Replace Select Text within a Database Field</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
<div style="clear:both;">&nbsp;</div>
<div class="sociable">
<span class="sociable_tagline">
<strong>Take a piece of the Web from WebPaws.com:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="Facebook" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field&amp;source=WebPaws.com&amp;summary=EXCERPT" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a href="http://twitter.com/home?status=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="TwitThis" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;t=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="MySpace" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/google.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="Webnews" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/webnews.png" title="Webnews" alt="Webnews" class="sociable-hovers" /></a></li>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://webpaws.com/blog/134/mysql-replace-text-within-database-field/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;title=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="eKudos" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/ekudos.png" title="eKudos" alt="eKudos" class="sociable-hovers" /></a></li>
	<li><a href="mailto:?subject=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field&amp;body=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="email" onfocus="sociable_description_link(this, 'E-mail this story to a friend!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/email.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a href="http://extension.fleck.com/?v=b.0.804&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="Fleck" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/fleck.gif" title="Fleck" alt="Fleck" class="sociable-hovers" /></a></li>
	<li><a href="http://hype.yeebase.com/submit/http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="Hype" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/hype.png" title="Hype" alt="Hype" class="sociable-hovers" /></a></li>
	<li><a href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;bm_description=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field&amp;plugin=soc" title="MisterWong" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a href="javascript:window.print();" title="Print" onfocus="sociable_description_link(this, 'Print this article!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/printer.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F134%2Fmysql-replace-text-within-database-field%2F&amp;=MySQL%20-%20Replace%20Select%20Text%20within%20a%20Database%20Field" title="YahooMyWeb" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
<span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="45" href="http://webpaws.com/blog/134/mysql-replace-text-within-database-field/"></fb:like></span>]]></content:encoded>
			<wfw:commentRss>http://webpaws.com/blog/134/mysql-replace-text-within-database-field/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Time, comparing time date entries</title>
		<link>http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/</link>
		<comments>http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 21:49:25 +0000</pubDate>
		<dc:creator>webpaws</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[auction time]]></category>
		<category><![CDATA[comparing time]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[ending soon]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Timestamp]]></category>

		<guid isPermaLink="false">http://webpaws.com/blog/2009/03/11/mysql-time-comparing-time-date-entries/</guid>
		<description><![CDATA[MySQL time and date functions are well documented (http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html), but the applications for specific needs are not. I would like to share a tidbit about comparing two database date entries, or one entry to the current time and then comparing the difference. The application is for an auction website, where I am comparing the current [&#8230;] <a class="more-link" href="http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/">&#8595; Read the rest of this entry...</a><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/">MySQL Time, comparing time date entries</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="linkedin_share_container" style="float:right;margin:0px 0px 10px 10px"><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL+Time%2C+comparing+time+date+entries&amp;summary=MySQL+time+and+date+functions+are+well+documented+%28http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Fdate-and-time-functions.html%29%2C+but+the+applications+for+specific+needs+are+not.++I+would+like+to+share+a+tidbit+about+comparing+two+database+date+entries%2C+or+one+entry+to+the+current+time+and+then+comparing+the+difference.%0AThe+application+is+for+an+auction+website%2C+where+I+am+comparing+the+current+%5B%26hellip%3B%5D+%3Ca+class%3D%22more-link%22+href%3D%22http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F%22%3E%26darr%3B+Read+the+rest+of+this+entry...%3C%2Fa%3E&amp;source=WebPaws.com" onclick="return popupLinkedInShare(this.href,'console',400,570)" class="linkedin_share_button"><img src="http://webpaws.com/blog/wp-content/plugins/linkedin-share-button/buttons/01.png" alt="" /></a></div><p>MySQL time and date functions are well documented (<a title="MySQL Timestamp, date, time manual" href="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html</a>), but the applications for specific needs are not.  I would like to share a tidbit about comparing two database date entries, or one entry to the current time and then comparing the difference.</p>
<p>The application is for an auction website, where I am comparing the current time to either the ending time date or the beginning time date to determine how many hours the current time is from either of those timestamps.</p>
<p>My PHP code sets a MySQL variable to insert into the SQL statement to compare the end or beginning timestamp.</p>
<p><code><br />
//In PHP, depending on the search query, I set the SQL to compare the beginning timestamp or the ending timestamp.</code><br />
<code><br />
if($cat==1){$catsql="TIMESTAMPDIFF(HOUR,StartTime,Now()) &lt; '24'";}<br />
elseif($cat==2){$catsql="TIMESTAMPDIFF(HOUR,Now(),EndTime) &lt; '24'";}<br />
else{$catsql="";}<br />
</code><br />
In the SQL code, I am finding the difference in Hours from the current time Now() to either the EndTime or the StartTime timestamps.  If less then 24 hours, it allows a condition to occur in the SQL statement to select specific records meeting that condition.</p>
<p>Keep in mind that the time date format is important and should be in the following format for the above MySQL statements to work:</p>
<p><code><br />
$currenttime = date("Y-m-d H:i:s");  //PHP timestamp consitant with MySQL<br />
</code></p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/">MySQL Time, comparing time date entries</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
<div style="clear:both;">&nbsp;</div>
<div class="sociable">
<span class="sociable_tagline">
<strong>Take a piece of the Web from WebPaws.com:</strong>
	<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span>
</span>
<ul>
	<li><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="Facebook" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries&amp;source=WebPaws.com&amp;summary=EXCERPT" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a href="http://twitter.com/home?status=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="TwitThis" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;t=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="MySpace" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/google.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="Webnews" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/webnews.png" title="Webnews" alt="Webnews" class="sociable-hovers" /></a></li>
	<li><a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="Digg" onfocus="sociable_description_link(this, 'bodytext')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a href="http://del.icio.us/post?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="del.icio.us" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a href="http://www.stumbleupon.com/submit.php?url=http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a href="http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;title=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="eKudos" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/ekudos.png" title="eKudos" alt="eKudos" class="sociable-hovers" /></a></li>
	<li><a href="mailto:?subject=MySQL%20Time%2C%20comparing%20time%20date%20entries&amp;body=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="email" onfocus="sociable_description_link(this, 'E-mail this story to a friend!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/email.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a href="http://extension.fleck.com/?v=b.0.804&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="Fleck" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/fleck.gif" title="Fleck" alt="Fleck" class="sociable-hovers" /></a></li>
	<li><a href="http://hype.yeebase.com/submit/http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="Hype" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/hype.png" title="Hype" alt="Hype" class="sociable-hovers" /></a></li>
	<li><a href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;bm_description=MySQL%20Time%2C%20comparing%20time%20date%20entries&amp;plugin=soc" title="MisterWong" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a href="javascript:window.print();" title="Print" onfocus="sociable_description_link(this, 'Print this article!')" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/printer.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a href="http://technorati.com/faves?add=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F" title="Technorati" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwebpaws.com%2Fblog%2F81%2Fmysql-time-comparing-time-date-entries%2F&amp;=MySQL%20Time%2C%20comparing%20time%20date%20entries" title="YahooMyWeb" rel="nofollow" target="_blank"><img src="http://webpaws.com/blog/wp-content/plugins/sociable-zyblog-edition/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
<span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="45" href="http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/"></fb:like></span>]]></content:encoded>
			<wfw:commentRss>http://webpaws.com/blog/81/mysql-time-comparing-time-date-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

