<?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: Pointy</title>
	<atom:link href="http://damian.peterson.net.nz/2008/09/16/pointy/feed/" rel="self" type="application/rss+xml" />
	<link>http://damian.peterson.net.nz/2008/09/16/pointy/</link>
	<description>The Bloggery of Damian Peterson</description>
	<lastBuildDate>Sat, 04 Sep 2010 10:22:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Damian</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-3490</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Thu, 12 Feb 2009 22:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-3490</guid>
		<description>Version 9.0213 is now available. I&#039;ve added the ability to connect directly to web services as an alternative datasource as well as the ability to override the connection string for all data functions. In the next month I&#039;ll be adding functionality to connect to MSSQL as well (a requirement for a customer who is using Pointy).</description>
		<content:encoded><![CDATA[<p>Version 9.0213 is now available. I&#8217;ve added the ability to connect directly to web services as an alternative datasource as well as the ability to override the connection string for all data functions. In the next month I&#8217;ll be adding functionality to connect to MSSQL as well (a requirement for a customer who is using Pointy).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Campbell</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2322</link>
		<dc:creator>Dale Campbell</dc:creator>
		<pubDate>Thu, 18 Sep 2008 05:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2322</guid>
		<description>well done - impressive - way over my head - but yeah...  :)</description>
		<content:encoded><![CDATA[<p>well done &#8211; impressive &#8211; way over my head &#8211; but yeah&#8230;  <img src='http://damian.peterson.net.nz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2310</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Tue, 16 Sep 2008 22:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2310</guid>
		<description>Ah, yes, this is pretty much the same as what I&#039;m using with the exception that I&#039;m feeding in the ability to &quot;CALL...&quot; or &quot;SELECT...&quot;. So, in theory, it should work provided you format the query correctly. I must play around with this at some stage.

Cheers!</description>
		<content:encoded><![CDATA[<p>Ah, yes, this is pretty much the same as what I&#8217;m using with the exception that I&#8217;m feeding in the ability to &#8220;CALL&#8230;&#8221; or &#8220;SELECT&#8230;&#8221;. So, in theory, it should work provided you format the query correctly. I must play around with this at some stage.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskAnAtheist.org</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2309</link>
		<dc:creator>AskAnAtheist.org</dc:creator>
		<pubDate>Tue, 16 Sep 2008 21:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2309</guid>
		<description>Here&#039;s what I use.  The config file just has username, password, etc.
(feel free to either leave this post up or remove it once you see the code)

&lt;?php
include_once&#040;&#039;../config.php&#039;&#041;;

class modelBase &#123;
&#160; &#160; 
&#160; &#160; public $procName;
&#160; &#160; private $params;
&#160; &#160; &#160; &#160; 
&#160; &#160; public function addInputParam&#040;$value&#041; &#123;
&#160; &#160; &#160; &#160; $this-&gt;params&#091;&#093; = $value;
&#160; &#160; &#125;
&#160; &#160; 
&#160; &#160; public function select&#040;&#041; &#123;
&#160; &#160; &#160; &#160; &lt;a href=&quot;http://www.php.net/global&quot; rel=&quot;nofollow&quot;&gt;global&lt;/a&gt; $db_user;
&#160; &#160; &#160; &#160; &lt;a href=&quot;http://www.php.net/global&quot; rel=&quot;nofollow&quot;&gt;global&lt;/a&gt; $db_server;
&#160; &#160; &#160; &#160; &lt;a href=&quot;http://www.php.net/global&quot; rel=&quot;nofollow&quot;&gt;global&lt;/a&gt; $db_password;
&#160; &#160; &#160; &#160; &lt;a href=&quot;http://www.php.net/global&quot; rel=&quot;nofollow&quot;&gt;global&lt;/a&gt; $db_name;

&#160; &#160; &#160; &#160; $paramList = &#039;&#039;;

&#160; &#160; &#160; &#160; foreach &#040;$this-&gt;params as $paramValue&#041; &#123;
&#160; &#160; &#160; &#160; &#160; &#160; $paramList .= &quot;$delimeter&#039;$paramValue&#039;&quot;;
&#160; &#160; &#160; &#160; &#160; &#160; 
&#160; &#160; &#160; &#160; &#160; &#160; $delimeter = &#039;,&#039;;
&#160; &#160; &#160; &#160; &#125;

&#160; &#160; &#160; &#160; $call = &quot;call $db_name.$this-&gt;procName($paramList)&quot;;

&#160; &#160; &#160; &#160; $mysqli = new mysqli&#040;$db_server, $db_user, $db_password, $db_name&#041;;
&#160; &#160; &#160; &#160; 
&#160; &#160; &#160; &#160; $mysqlresult = $mysqli-&gt;query&#040;$call&#041;;
&#160; &#160; &#160; &#160; 
&#160; &#160; &#160; &#160; while &#040;$mysqlrow = $mysqlresult-&gt;fetch_row&#040;&#041;&#041; &#123;
&#160; &#160; &#160; &#160; &#160; &#160; $mysqldata&#091;&#093; = $mysqlrow;
&#160; &#160; &#160; &#160; &#125;
&#160; &#160; &#160; &#160; 
&#160; &#160; &#160; &#160; return $mysqldata;
&#160; &#160; &#125;
&#125;

?&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s what I use.  The config file just has username, password, etc.<br />
(feel free to either leave this post up or remove it once you see the code)</p>
<p>&lt;?php<br />
include_once&#40;&#8217;../config.php&#8217;&#41;;</p>
<p>class modelBase &#123;<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; public $procName;<br />
&nbsp; &nbsp; private $params;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; public function addInputParam&#40;$value&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;params&#91;&#93; = $value;<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; public function select&#40;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global" rel="nofollow">global</a> $db_user;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global" rel="nofollow">global</a> $db_server;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global" rel="nofollow">global</a> $db_password;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global" rel="nofollow">global</a> $db_name;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; $paramList = &#8221;;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; foreach &#40;$this-&gt;params as $paramValue&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $paramList .= &quot;$delimeter&#8217;$paramValue&#8217;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $delimeter = &#8216;,&#8217;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &#125;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; $call = &quot;call $db_name.$this-&gt;procName($paramList)&quot;;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; $mysqli = new mysqli&#40;$db_server, $db_user, $db_password, $db_name&#41;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mysqlresult = $mysqli-&gt;query&#40;$call&#41;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while &#40;$mysqlrow = $mysqlresult-&gt;fetch_row&#40;&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $mysqldata&#91;&#93; = $mysqlrow;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return $mysqldata;<br />
&nbsp; &nbsp; &#125;<br />
&#125;</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2308</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Tue, 16 Sep 2008 19:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2308</guid>
		<description>Bnonn, thanks and I apologise in advance for the lack of documentation.

Iain, yes, nice.co.nz is my business. Only me in it though. I have a bunch of other designers and developers I work with on various jobs.

A3, I hear ya re the hours! Pointy doesn&#039;t currently automatically handle stored procs. It&#039;s something I&#039;ve really struggled to get working in PHP. At the moment it only does simple MySQL queries.

I&#039;ve worked with stored procs a bit with MSSQL but am of two minds as to whether I actually agree with the concept of moving too much application logic across to the DB. Having difficulty with PHP and stored procs had only made it easier for me to ignore the problem and only use the DB for storage.

How do you handle them?</description>
		<content:encoded><![CDATA[<p>Bnonn, thanks and I apologise in advance for the lack of documentation.</p>
<p>Iain, yes, nice.co.nz is my business. Only me in it though. I have a bunch of other designers and developers I work with on various jobs.</p>
<p>A3, I hear ya re the hours! Pointy doesn&#8217;t currently automatically handle stored procs. It&#8217;s something I&#8217;ve really struggled to get working in PHP. At the moment it only does simple MySQL queries.</p>
<p>I&#8217;ve worked with stored procs a bit with MSSQL but am of two minds as to whether I actually agree with the concept of moving too much application logic across to the DB. Having difficulty with PHP and stored procs had only made it easier for me to ignore the problem and only use the DB for storage.</p>
<p>How do you handle them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskAnAtheist.org</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2307</link>
		<dc:creator>AskAnAtheist.org</dc:creator>
		<pubDate>Tue, 16 Sep 2008 14:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2307</guid>
		<description>I can&#039;t wait to have a look!!  (I&#039;ll have to wait for a chance to come up for air myself - I&#039;m working 10-hour days + weekends to finish up the current workload).  Will Pointy include support for stored-proc calls or possibly OR mapping to stored-procs?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t wait to have a look!!  (I&#8217;ll have to wait for a chance to come up for air myself &#8211; I&#8217;m working 10-hour days + weekends to finish up the current workload).  Will Pointy include support for stored-proc calls or possibly OR mapping to stored-procs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2306</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 16 Sep 2008 11:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2306</guid>
		<description>Brilliant, good man. I did web development a few years back in my CompSci days, but unfortunately I&#039;m feeling a little too rusty now to truly appreciate Pointy the way it deserves.

However, I *am* mightily impressed by the layout and presentation of Nice.co.nz
Is Nice.co.nz your own business, or are you &quot;working for The Man&quot;?

I have some people running their own business who have been asking me about getting some website work done for them (but I was thinking about declining), perhaps you would like to be put together and possibly give them an estimate?

You could always email me if you might be interested, I have put my address in the details.</description>
		<content:encoded><![CDATA[<p>Brilliant, good man. I did web development a few years back in my CompSci days, but unfortunately I&#8217;m feeling a little too rusty now to truly appreciate Pointy the way it deserves.</p>
<p>However, I *am* mightily impressed by the layout and presentation of Nice.co.nz<br />
Is Nice.co.nz your own business, or are you &#8220;working for The Man&#8221;?</p>
<p>I have some people running their own business who have been asking me about getting some website work done for them (but I was thinking about declining), perhaps you would like to be put together and possibly give them an estimate?</p>
<p>You could always email me if you might be interested, I have put my address in the details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Bnonn Tennant</title>
		<link>http://damian.peterson.net.nz/2008/09/16/pointy/#comment-2305</link>
		<dc:creator>Dominic Bnonn Tennant</dc:creator>
		<pubDate>Tue, 16 Sep 2008 06:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://damian.peterson.net.nz/?p=170#comment-2305</guid>
		<description>Cool; I&#039;m learning PHP at the moment so I&#039;m interested to try it out. Nice work.</description>
		<content:encoded><![CDATA[<p>Cool; I&#8217;m learning PHP at the moment so I&#8217;m interested to try it out. Nice work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
