<?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>Winn.ws &#187; db_class</title>
	<atom:link href="http://winn.ws/archives/tag/db_class/feed" rel="self" type="application/rss+xml" />
	<link>http://winn.ws</link>
	<description>Standards-based design &#38; development</description>
	<lastBuildDate>Sat, 28 Aug 2010 07:22:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selectall() with db_class</title>
		<link>http://winn.ws/archives/120</link>
		<comments>http://winn.ws/archives/120#comments</comments>
		<pubDate>Thu, 21 Feb 2008 05:35:11 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/120</guid>
		<description><![CDATA[I have added an update to my db_class framework to allow you to select any table from your database. You may pass the new method the table name then what columns you would like to return or you may just say all for all columns. Once you call the method you may display the results [...]]]></description>
			<content:encoded><![CDATA[<p>I have added an update to my db_class framework to allow you to select any table from your database. You may pass the new method the table name then what columns you would like to return or you may just say all for all columns. Once you call the method you may display the results with a while statement lie normal.</p>
<p>[php]<br />
$db = new dbcon();<br />
$accounts = $db->selectall(&#8216;accounts&#8217;, &#8216;all&#8217;);</p>
<p>while($row = mysql_fetch_array($accounts)) {<br />
     print $row['name'];<br />
}<br />
[/php]</p>
<p>Download the db_class here: <a href="/downloads/db_class.zip">DB_CLASS.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/120/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Confirm your passwords</title>
		<link>http://winn.ws/archives/113</link>
		<comments>http://winn.ws/archives/113#comments</comments>
		<pubDate>Mon, 14 Jan 2008 20:03:15 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/113</guid>
		<description><![CDATA[I have added a quick function to the auth class that will allow you to check your passwords. You will need to feed the function the password field and the confirm password field. It will check if they match then return TRUE or FALSE if they don’t.
Download the db_class
[php]$auth = new auth();
$auth->validates_confirmation_of_password($password,$password2);[/php]
]]></description>
			<content:encoded><![CDATA[<p>I have added a quick function to the auth class that will allow you to check your passwords. You will need to feed the function the password field and the confirm password field. It will check if they match then return TRUE or FALSE if they don’t.</p>
<p><a href="http://winn.ws/downloads/db_class.zip">Download the db_class</a></p>
<p>[php]$auth = new auth();<br />
$auth->validates_confirmation_of_password($password,$password2);[/php]</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/113/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixes to the Auth Class</title>
		<link>http://winn.ws/archives/108</link>
		<comments>http://winn.ws/archives/108#comments</comments>
		<pubDate>Wed, 02 Jan 2008 19:06:11 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[user authentication]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=108</guid>
		<description><![CDATA[I left out a line in the new class (auth), I did not set the variables inside the class. I have now fixed this problem sorry for any headaches this may have caused!
On another note I added a new function to the class (auth), this function will allow you to validate the uniqueness of an [...]]]></description>
			<content:encoded><![CDATA[<p>I left out a line in the new class (auth), I did not set the variables inside the class. I have now fixed this problem sorry for any headaches this may have caused!</p>
<p>On another note I added a new function to the class (auth), this function will allow you to validate the uniqueness of an email address within your current accounts. It has both a new account setting and an edit account setting. This will come in handy with signing people up for your application, especially if you only allow one person to have one account per email address.</p>
<p>Below is how to call both new and edit functions.</p>
<p>[php]<br />
$auth = new auth();<br />
$auth->validates_uniqueness_of_email($_POST['email'], &#8216;new&#8217;);<br />
// == OR if this user has an account<br />
$auth->validates_uniqueness_of_email($_POST['email'], &#8216;edit&#8217;);<br />
[/php]</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/108/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use the db_class to authenticate</title>
		<link>http://winn.ws/archives/107</link>
		<comments>http://winn.ws/archives/107#comments</comments>
		<pubDate>Sun, 30 Dec 2007 18:17:24 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[user authentication]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=107</guid>
		<description><![CDATA[User authentication made easier and less of a hassle to write. Use my db_class to authenticate a user from your database, with all the options you would have if you wrote it yourself! I have also added an &#8220;Auto Start&#8221; this will start the classes you want right off the bat, saving you one line [...]]]></description>
			<content:encoded><![CDATA[<p>User authentication made easier and less of a hassle to write. Use my db_class to authenticate a user from your database, with all the options you would have if you wrote it yourself! I have also added an &#8220;Auto Start&#8221; this will start the classes you want right off the bat, saving you one line of code.</p>
<p>Authentication is easy to call, just use the following line.</p>
<p>[php]<br />
$auth->login(&#8216;the_user&#8217;, &#8216;the_password&#8217;);<br />
[/php]</p>
<p>All that’s left for you is to build the form and edit the db_class file with the correct settings! Let me know how it works for you, or if you have any issues!</p>
<p><a href="/downloads/db_class.zip">Download the db_class (ZIP file)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding on to the db_class</title>
		<link>http://winn.ws/archives/106</link>
		<comments>http://winn.ws/archives/106#comments</comments>
		<pubDate>Sat, 29 Dec 2007 22:06:28 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[user authentication]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=106</guid>
		<description><![CDATA[I am adding a user authentication class to this, as that is something I use on a regular basis. I think other developers will get a lot of use out of this as well. I all put the class up for download sometime this weekend. I will also post more details on how to use [...]]]></description>
			<content:encoded><![CDATA[<p>I am adding a user authentication class to this, as that is something I use on a regular basis. I think other developers will get a lot of use out of this as well. I all put the class up for download sometime this weekend. I will also post more details on how to use it and how to call this class.</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/106/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save time with Queries</title>
		<link>http://winn.ws/archives/79</link>
		<comments>http://winn.ws/archives/79#comments</comments>
		<pubDate>Sun, 11 Nov 2007 18:06:52 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[db_class]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://winn.ws/?p=79</guid>
		<description><![CDATA[In developing the June Project and JuneLite I came up with something that was saving me a lot of time. This php class is calling the queries for me all I need to do is write the guts of the query, and if updating provide the record id. This class can connect to your database [...]]]></description>
			<content:encoded><![CDATA[<p>In developing the June Project and JuneLite I came up with something that was saving me a lot of time. This php class is calling the queries for me all I need to do is write the guts of the query, and if updating provide the record id. This class can connect to your database and then all you need to do is make calls to it below I show you how. In this version of the DB Class I have “Update, Insert and Delete”, I will be working on a method to pull selects out soon, but for now you will have to add your own select queries.<br />
[php]<br />
//==> how to call this<br />
$db = new dbcon();<br />
$db->update(&#8216;table&#8217;, &#8216;row=your data&#8217;, &#8216;id&#8217;);<br />
[/php]</p>
<p>The next section of code is how to insert into the database.<br />
[php]<br />
//==> how to call this<br />
$db = new dbcon();<br />
$db->insert(&#8216;table_name&#8217;, &#8216;row=your info&#8217;);<br />
[/php]</p>
<p><a href="/downloads/db_class.zip">Download the Zip file here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/79/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using memcached
Content Delivery Network via Amazon Web Services: CloudFront: dhbbuddo7esu2.cloudfront.net

Served from: winn.ws @ 2010-09-08 23:12:56 -->