<?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>Daily Grind &#187; Dev</title>
	<atom:link href="http://www.simond.net/category/dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simond.net</link>
	<description>Wonderings, wanderings and waffle</description>
	<lastBuildDate>Wed, 31 Aug 2011 17:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iPhone Development</title>
		<link>http://www.simond.net/2010/03/18/iphone-development/</link>
		<comments>http://www.simond.net/2010/03/18/iphone-development/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 13:54:03 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.simond.net/?p=649</guid>
		<description><![CDATA[Besides being a right pain in the arse &#8211; with numerous development certificates required, I&#8217;m starting to get a handle on it. I&#8217;ve got a simple &#8216;push&#8217; application and service (written in PHP) working. Just need to work out how &#8230; <a href="http://www.simond.net/2010/03/18/iphone-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Besides being a right pain in the arse &#8211; with numerous development certificates required, I&#8217;m starting to get a handle on it. </p>
<p>I&#8217;ve got a simple &#8216;push&#8217; application and service (written in PHP) working. Just need to work out how the feedback mechanism works, so that you can remove old connections.</p>
<p>These were the best sites I found, for help: <a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" onclick="pageTracker._trackPageview('/outgoing/www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/?referer=');">Macoscoders</a> and <a href="http://iphonesdkdev.blogspot.com/2009/04/apns-client-development-certificate.html" onclick="pageTracker._trackPageview('/outgoing/iphonesdkdev.blogspot.com/2009/04/apns-client-development-certificate.html?referer=');">iPhone Software Development</a>. I have to say that Objective-C is counter-intuitive and I&#8217;m glad I&#8217;ve got some good books!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simond.net/2010/03/18/iphone-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>E-mail Results of MySQL Query with PHP</title>
		<link>http://www.simond.net/2009/09/26/e-mail-results-of-mysql-query-with-php/</link>
		<comments>http://www.simond.net/2009/09/26/e-mail-results-of-mysql-query-with-php/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 10:48:32 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.simond.net/?p=787</guid>
		<description><![CDATA[I was in need of a simple house-keeping script, but couldn&#8217;t find anything simple. So I knocked this, simplified, up: &#60;?php $to = 'to@me.com'; $subject = 'SQL results'; $headers = 'From: me@me.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $dbname &#8230; <a href="http://www.simond.net/2009/09/26/e-mail-results-of-mysql-query-with-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was in need of a simple house-keeping script, but couldn&#8217;t find anything simple. So I knocked this, simplified, up:</p>
<p><code><br />
&lt;?php<br />
$to      = 'to@me.com';<br />
$subject = 'SQL results';</p>
<p>$headers = 'From: me@me.com' . "\r\n" .<br />
    'X-Mailer: PHP/' . phpversion();</p>
<p>$dbname = 'name';    // The name of the database<br />
$dbuser = 'user';     // Your MySQL username<br />
$dbpass = 'password'; // ...and password</p>
<p>mysql_connect("localhost",$dbuser,$dbpass);<br />
mysql_select_db($dbname) or die( "Unable to select database");</p>
<p>$query =  "select 1 as id, 2 as name, 3 as something";<br />
$result=mysql_query($query);<br />
$num=mysql_numrows($result);<br />
mysql_close();</p>
<p>$i=0;<br />
$message = "";<br />
while ($i < $num)<br />
{<br />
	$id=mysql_result($result,$i,"id");<br />
	$name=mysql_result($result,$i,"name");<br />
	$something=mysql_result($result,$i,"something");</p>
<p>	$message.= $id. " ". $name . " " . $something . "\n";<br />
	$i++;<br />
}</p>
<p>if ($num > 0)<br />
{<br />
  mail($to, $subject, $message, $headers);<br />
}<br />
?&gt;<br />
</code></p>
<p>Replace variables with suitable values!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simond.net/2009/09/26/e-mail-results-of-mysql-query-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

