<?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>WpFunc &#187; footer.php</title>
	<atom:link href="http://www.wpfunc.com/tag/footer-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>2 Useful SQL Hacks For WordPress</title>
		<link>http://www.wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html</link>
		<comments>http://www.wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 11:00:47 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[footer.php]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[spam commets]]></category>
		<category><![CDATA[theme edit]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=113</guid>
		<description><![CDATA[I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;
1st one; Delete your 5000 spam comments in 1 [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/delete-your-posts-revisions-simply-quickly.html' rel='bookmark' title='Permanent Link: Delete Your Posts Revisions! Simply, Quickly!'>Delete Your Posts Revisions! Simply, Quickly!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-disable-auto-saving.html' rel='bookmark' title='Permanent Link: How to disable auto saving!'>How to disable auto saving!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html' rel='bookmark' title='Permanent Link: Most Recent Comments! Without Any Plugin'>Most Recent Comments! Without Any Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;<span id="more-113"></span></p>
<h3>1st one; Delete your 5000 spam comments in 1 second :)</h3>
<p>Yes you read it rightly. You can delete your spam comments from mysql in 1 second. Firstly you have to login to your <strong><em>Mysql Manager</em></strong> and integrate this lines from tab.</p>
<h3>Here is the code:</h3>
<pre class="brush: plain;">DELETE from wp_comments WHERE comment_approved = '0';</pre>
<p>That&#8217;s All! You delete your spam comments :)</p>
<h3>2nd one; Show number of queries on your footer</h3>
<p style="text-align: justify;">You can show number of queries and query time on your template&#8217;s footer. That&#8217;s a simple code again and you have to edit your <span style="color: #ff0000;"><em><strong>footer.php</strong></em></span> file. Add this lines to footer.php</p>
<h3>Here is the code;</h3>
<pre class="brush: plain;">&lt;?php if (is_user_logged_in()) { ?&gt;
 &lt;?php echo get_num_queries(); ?&gt; queries in &lt;?php timer_stop(1); ?&gt; seconds.
&lt;?php } ?&gt;</pre>
<p>We add<strong><em> if_user_logged_in</em></strong> because we dont want to visitors see this line :)</p>
<p>That&#8217;s All. Have a nice day!</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;title=2%20Useful%20SQL%20Hacks%20For%20WordPress&amp;notes=I%20Love%20Mysql%2C%20love%20WordPress%20too%20%3A%29%20Here%20i%20give%20to%20you%202%20simple%20and%20useful%20sql%20hacks%20for%20WordPress.%20First%20one%20is%20about%20spam%20comments%20and%20delete%20them.%20Second%20one%20is%20show%20number%20of%20queries%20on%20your%20footer.%20You%20can%20apply%20from%20Mysql%20application.%20Lets%20Begi'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;title=2%20Useful%20SQL%20Hacks%20For%20WordPress&amp;bodytext=I%20Love%20Mysql%2C%20love%20WordPress%20too%20%3A%29%20Here%20i%20give%20to%20you%202%20simple%20and%20useful%20sql%20hacks%20for%20WordPress.%20First%20one%20is%20about%20spam%20comments%20and%20delete%20them.%20Second%20one%20is%20show%20number%20of%20queries%20on%20your%20footer.%20You%20can%20apply%20from%20Mysql%20application.%20Lets%20Begi'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;t=2%20Useful%20SQL%20Hacks%20For%20WordPress'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=2%20Useful%20SQL%20Hacks%20For%20WordPress&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;title=2%20Useful%20SQL%20Hacks%20For%20WordPress'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;title=2%20Useful%20SQL%20Hacks%20For%20WordPress'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2F2-useful-sql-hacks-for-wordpress.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/delete-your-posts-revisions-simply-quickly.html' rel='bookmark' title='Permanent Link: Delete Your Posts Revisions! Simply, Quickly!'>Delete Your Posts Revisions! Simply, Quickly!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-disable-auto-saving.html' rel='bookmark' title='Permanent Link: How to disable auto saving!'>How to disable auto saving!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html' rel='bookmark' title='Permanent Link: Most Recent Comments! Without Any Plugin'>Most Recent Comments! Without Any Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
