<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>MD's blog</title>
	<atom:link href="http://mdalke.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mdalke.wordpress.com</link>
	<description>sharing my world.</description>
	<lastBuildDate>Tue, 30 Oct 2007 10:35:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mdalke.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>MD's blog</title>
		<link>http://mdalke.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mdalke.wordpress.com/osd.xml" title="MD&#039;s blog" />
	<atom:link rel='hub' href='http://mdalke.wordpress.com/?pushpress=hub'/>
		<item>
		<title>varisoft simple accounts</title>
		<link>http://mdalke.wordpress.com/2007/10/30/varisoft-simple-accounts/</link>
		<comments>http://mdalke.wordpress.com/2007/10/30/varisoft-simple-accounts/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 10:35:33 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://mdalke.wordpress.com/2007/10/30/varisoft-simple-accounts/</guid>
		<description><![CDATA[New interface is complete, marketting is the way for it now Not my field of expertise i tell ya<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=10&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>New interface is complete, marketting is the way for it now <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not my field of expertise i tell ya <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=10&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/30/varisoft-simple-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF, WCF</title>
		<link>http://mdalke.wordpress.com/2007/10/24/wpf-wcf/</link>
		<comments>http://mdalke.wordpress.com/2007/10/24/wpf-wcf/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 09:32:37 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://mdalke.wordpress.com/2007/10/24/wpf-wcf/</guid>
		<description><![CDATA[eh??<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=9&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>eh??</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=9&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/24/wpf-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP MySQL Class</title>
		<link>http://mdalke.wordpress.com/2007/10/19/php-mysql-class/</link>
		<comments>http://mdalke.wordpress.com/2007/10/19/php-mysql-class/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 10:42:02 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://mdalke.wordpress.com/2007/10/19/php-mysql-class/</guid>
		<description><![CDATA[Here you go As normal feel free to use but mail me where you do You will have to add your details to the global variables to connect of course &#60;? /**  * Class:sql  * + Handles all the sql queries.  * --------  * @author MDalke  * @copyright 2007 MDalke  * @todo + Constants from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=7&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here you go <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
As normal feel free to use but mail me where you do <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You will have to add your details to the global variables to connect of course <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote>
<pre>&lt;?
/**
 * Class:sql
 * + Handles all the sql queries.
 * --------
 * @author MDalke
 * @copyright 2007 MDalke
 * @todo + Constants from constants class.
 *       + Proper Labeling of what everything does
 */</pre>
<pre>class sql {</pre>
<pre> var $conn_id;
 var $result;
 var $record;
 var $db = array();
 var $host;
 var $user;
 var $pass;
 var $dbname;
 var $constant;
 var $debugStack = array();</pre>
<pre>
 /**
     * void sql
     * + Class Construct (PHP4)
  * -----------------
  * @param string $host
  * @param string $user
  * @param string $pass
  * @param string $dbname
  * @return sql
  */
 function sql($host=null,$user=null,$pass=null,$dbname=null){
  $this-&gt;__construct($host=null,$user=null,$pass=null,$dbname=null);
 }</pre>
<pre>    /**
     * void __construct
     * + Class Construct fix for PHP5
  * -----------------
     * @param string $host
     * @param string $user
     * @param string $pass
     * @param string $dbname
     * @return __construct
     */
 function __construct($host=null,$user=null,$pass=null,$dbname=null) {</pre>
<pre>  $this-&gt;host = ($host)?$host:$this-&gt;host;
  $this-&gt;user = ($user)?$user:$this-&gt;user;
  $this-&gt;pass = ($pass)?$pass:$this-&gt;pass;
  $this-&gt;dbname = ($dbname)?$dbname:$this-&gt;dbname;</pre>
<pre> }
 
 /**
  * void connect
  *  + Connects to the mysql
  * -----------------
  * @return void
  */
 function connect() {</pre>
<pre>
        // + Using the getconst function to get the required details
        // + Needed:
        //    + Host (The DB Host)
        //    + User (The DB User)
        //    + Pass (The DB pass)
        //    + Dbname (The DB Name)
       
  $this-&gt;host = $dbhost;
  $this-&gt;user = $dbuser;
  $this-&gt;pass = $dbpasswd;
  $this-&gt;dbname = $dbname;
        // + Opens the connection to the DB
  mysql_connect($this-&gt;host,$this-&gt;user,$this-&gt;pass);
  // + Selects the required database or dies.
  @mysql_select_db($this-&gt;dbname) or die("Unable to select database");</pre>
<pre> }</pre>
<pre> /**
  * string query
  * + Executes the query to the MYSQL.
  * -----------------
  * @param string $query_string
  * @return string $result
  */
 function query($query_string) {
  $this-&gt;result = mysql_query($query_string);
  return $this-&gt;result;
 }</pre>
<pre> /**
  * array fetch_array
  * + Creates an array of results
  * -----------------
  * @param string $query_id
  * @return array $record
  */
 function fetch_array($query_id) {
  $this-&gt;record = mysql_fetch_array($query_id,MYSQL_ASSOC);
  return $this-&gt;record;
 }</pre>
<pre> /**
  * int num_rows
  * + Gets number of results
  * -----------------
  * @param string $query_id
  * @return int
  */
 function num_rows($query_id) {
  return ($query_id) ? mysql_num_rows($query_id) : 0;
 }
   
 /**
  * int num_fields
  * + Gets number of fields in the results
  * -----------------
  * @param string $query_id
  * @return int
  */ 
 function num_fields($query_id) {
  return ($query_id) ? mysql_num_fields($query_id) : 0;
 }</pre>
<pre> /**
  * void free_result
  * + Frees the result set.
  * -----------------
  * @param string $query_id
  * @return void
  */
 function free_result($query_id) {
  return mysql_free_result($query_id);
 }</pre>
<pre> /**
  * int affected rows
  * + Get number of affected rows in previous MySQL operation
  * -----------------
  * @return int
  */
 function affected_rows() {
  return mysql_affected_rows($this-&gt;conn_id);
 }</pre>
<pre> /**
  * boolean close_db
  * + Closes the connection to the DB
  * -----------------
  * @return boolean
  */
 function close_db() {
  if($this-&gt;conn_id) {
   return mysql_close($this-&gt;conn_id);
  } else {
   return false;
  }
 }</pre>
<pre> /**
  * Void debug
  * + Creates a set of debug instructions
  * -----------------
  * @param string $msg
  */</pre>
<pre> function debug($msg){
  $this-&gt;debugStack .= $msg."&lt;br&gt;\n";
 }</pre>
<pre>
 /**
  * String returnDebug
  * + Returns the debugstack.
  * -----------------
  * @return string $debugStack
  */
 function returnDebug(){
  return $this-&gt;debugStack;
 }</pre>
<pre>}</pre>
<pre>?&gt;</pre>
</blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=7&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/19/php-mysql-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Support Class (For a commerce site)</title>
		<link>http://mdalke.wordpress.com/2007/10/19/php-support-class-for-a-commerce-site/</link>
		<comments>http://mdalke.wordpress.com/2007/10/19/php-support-class-for-a-commerce-site/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 10:36:24 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://mdalke.wordpress.com/2007/10/19/php-support-class-for-a-commerce-site/</guid>
		<description><![CDATA[This is my take on a php support class. Enjoy its not truely complete but it can be finished with a little time If u wish to use it feel free to but credit me and send me a mail telling me where you are using it You will need my take on a mysql [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=6&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my take on a php support class. Enjoy its not truely complete but it can be finished with a little time <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If u wish to use it feel free to but credit me and send me a mail telling me where you are using it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You will need my take on a mysql class also posted on my blog or make your own and edit the code.<br />
Plus where you see the constants bit either make your own constants class or fill it in with your own constants.</p>
<blockquote>
<pre>&lt;?
/**
 * Class:support
 * + Handles the support section of the website.
 * --------
 * @author mdalke
 * @copyright 2007 mdalke
 * @todo + Constants from constants class.
 *       + Add class to add a ticket
 *       + Security
 *       + Add Stuff <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />
 *       + Proper Labeling of what everything does
 */</pre>
<pre>class support{
 // + Generally Needed variables
 var $db;
 var $constants;
 var $debugStack = array();
 // + Table Variables
 var $support_table;
 var $userstbl;
 var $managerstbl;
 var $base_cat_tbl;
 var $base_topics_tbl;
 var $assignedtbl;
 // + Knowledge Base Items
 var $title;
 var $content;
 var $subject;
 var $sub_subject;
 var $priority;
 var $assigned;
 var $user_id;</pre>
<pre>
 /**
  * Void support
  * + Construct (PHP4)
  * -----------------
  * @param string $title
  * @param string $content
  * @param int $subject
  * @param int $sub_subject
  * @param int $priority
  * @param int $assigned
  * @param int $user_id
  * @param string $support_table
  * @return support
  */
 function support($title=null,$content=null,$subject=null,$sub_subject=null,$priority=null,$assigned=null,$user_id=null,$support_table=null){
  $this-&gt;__construct($title,$content,$subject,$sub_subject,$priority,$assigned,$user_id,$support_table);
 }</pre>
<pre>
 /**
  * Void __construct
  * + Construct (PHP5 Fix)
  * -----------------
  * @param string $title
  * @param string $content
  * @param int $subject
  * @param int $sub_subject
  * @param int $priority
  * @param int $assigned
  * @param int $user_id
  * @param string $support_table
  * @return __construct
  */ 
 function __construct($title=null,$content=null,$subject=null,$sub_subject=null,$priority=null,$assigned=null,$user_id=null,$support_table=null){</pre>
<pre>  if(!$this-&gt;db = new sql()){
   throw new Exception("Error opening class sql");
  }
  $this-&gt;debug("Opened SQL Class");
  if(!$this-&gt;constants = new constants()){
   throw new Exception("Error opening class constants");
  }
  $this-&gt;debug("Opened Constants");</pre>
<pre>  $this-&gt;title = ($title)?$title:$this-&gt;title;
  $this-&gt;content = ($content)?$content:$this-&gt;content;
  $this-&gt;subject = ($subject)?$subject:$this-&gt;subject;
  $this-&gt;sub_subject = ($sub_subject)?$sub_subject:$this-&gt;sub_subject;
  $this-&gt;priority = ($priority)?$priority:$this-&gt;priority;
  $this-&gt;assigned = ($assigned)?$assigned:$this-&gt;assigned;
  $this-&gt;user_id = ($user_id)?$user_id:$this-&gt;user_id;
  $this-&gt;support_table = ($support_table)?$support_table:$this-&gt;support_table;
  $this-&gt;debug("Constructed Variables");</pre>
<pre>  $this-&gt;base_topics_tbl = $this-&gt;constants-&gt;getconst("kb_topics_tbl");
  $this-&gt;managerstbl = $this-&gt;constants-&gt;getconst("managers_tbl");
  $this-&gt;userstbl = $this-&gt;constants-&gt;getconst("users_tbl");
  $this-&gt;assignedtbl = $this-&gt;constants-&gt;getconst("assigned_tbl");
  $this-&gt;base_cat_tbl = $this-&gt;constants-&gt;getconst("kb_cat_tbl");
  $this-&gt;debug("Added Some Constants");</pre>
<pre>
 }</pre>
<pre> function view_kb_topic($id){</pre>
<pre>  $sql = "SELECT * FROM '".$this-&gt;base_topics_tbl."' WHERE id='".$id."'";
  $query = $this-&gt;db-&gt;query($sql);</pre>
<pre>  if(!$base = $this-&gt;db-&gt;fetch_array($query)){
   throw new Exception("Error Fetching The Knowledge Base Item ".mysql_error()."&lt;br&gt;".$sqlb);
  }
  $this-&gt;debug("Retrived the Knowledge Base Topic");
  return $base;</pre>
<pre> }</pre>
<pre> function view_kb_cats($id){</pre>
<pre>  $sql = "SELECT * FROM '".$this-&gt;base_cat_tbl."' WHERE id='".$id."'";
  $query = $this-&gt;db-&gt;query($sql);</pre>
<pre>  if(!$base = $this-&gt;db-&gt;fetch_array($query)){
   throw new Exception("Error Fetching The Knowledge Base Catergory ".mysql_error()."&lt;br&gt;".$sqlb);
  }
  $this-&gt;debug("Retrieved the Knowledge Base Category");
  return $base;</pre>
<pre> }</pre>
<pre> function view_kb_cat_from_topic($id){</pre>
<pre>  $sql = "SELECT * FROM '".$this-&gt;base_topics_tbl."'
          INNER JOIN '".$this-&gt;base_cat_tbl."'
          ON '".$this-&gt;base_topics_tbl."'.cid='".$this-&gt;base_cat_tbl."'.id";
  $query = $this-&gt;db-&gt;query($sql);</pre>
<pre>  if(!$base = $this-&gt;db-&gt;fetch_array($query)){
   throw new Exception("Error getting the knowledge base item in query ".mysql_error()."&lt;br&gt;".$sqlb);
  }
  $this-&gt;debug("Retrieved the Category from the Topic");
  return $base;</pre>
<pre> }</pre>
<pre> function assign_manager($tid){</pre>
<pre>  $sql = "SELECT * FROM '".$this-&gt;managerstbl."'
          INNER JOIN '".$this-&gt;usertbl."'
          ON '".$this-&gt;managerstbl."'.user_id='".$this-&gt;usertbl."'.user_id";</pre>
<pre>  $query = $this-&gt;db-&gt;query($sql);
  if(!$max = $this-&gt;db-&gt;num_rows($query)){
   throw new Exception("Error Executive Query ".mysql_error()."&lt;br&gt;".$sqlb);
  }
        $this-&gt;debug("Accessed the managers table");
  
        $figure = rand(0,$max);
        $this-&gt;debug("Created a random figure from the managers id");
  while($base = mysql_fetch_array($query)){</pre>
<pre>   if($base["id"] == $figure){
    $sqlb = "INSERT INTO '".$this-&gt;assignedtbl."'
           (tid,mid)
           VALUES('".$tid."','".$base["id"]."')";
    if(!$sql_q = mysql_query($sqlb)){
     throw new Exception("Error with Assigning A Manager: ".mysql_error()."&lt;br&gt;".$sqlb);
    }else{
     $this-&gt;debug("Assigned manager to topic");
     return true;
    }
   }</pre>
<pre>
  }</pre>
<pre> }</pre>
<pre> function get_manager_info($mid){</pre>
<pre>  $sql = "SELECT * FROM '".$this-&gt;managerstbl."'
          INNER JOIN '".$this-&gt;usertbl."'
          ON '".$this-&gt;managerstbl."'.user_id='".$this-&gt;usertbl."'.user_id
          WHERE '".$this-&gt;managerstbl."'.mid = '".$mid."'";
  $query = $this-&gt;db-&gt;query($sql);</pre>
<pre>  if(!$base = $this-&gt;db-&gt;fetch_array($query)){
   throw new Exception("Error Getting Manager's Info".mysql_error()."&lt;br&gt;".$sqlb);
  }
        $this-&gt;debug("Retrived The Managers Information");
  return $base;
 }</pre>
<pre> function add_ticket($title,$content,$subject,$sub_subject,$priority,$assigned,$user_id){</pre>
<pre>  $this-&gt;title = stripslashes($title);
  $this-&gt;content = stripslashes($content);
  $this-&gt;subject = $subject;
  $this-&gt;sub_subject = $sub_subject;
  $this-&gt;priority = $priority;
  $this-&gt;assigned = $assigned;
  $this-&gt;user_id = $user_id;
  $this-&gt;debug("Assigned Values For Ticket");</pre>
<pre>  $this-&gt;support_table = $this-&gt;constants-&gt;getconst("kb_topics_tbl");
        $this-&gt;debug("Support Table Assigned From Constants");
  $sql = "INSERT INTO '".$this-&gt;support_table."'
   (title,content,subject,sub_subject,priority,assigned,user_id)
   VALUES('".$this-&gt;title."','".$this-&gt;content."','".$this-&gt;subject."','".$this-&gt;sub_subject."',
   '".$this-&gt;priority."','".$this-&gt;assigned."','".$this-&gt;user_id."')";</pre>
<pre>  if(!$sql_q = mysql_query($sql)){
   throw new Exception("Error with Adding A Ticket: ".mysql_error()."&lt;br&gt;".$sql);
  }else{
   $this-&gt;debug("Inserted Ticket into DB");
   return true;
  }</pre>
<pre> }</pre>
<pre> /**
  * Void debug
  * + Creates a set of debug instructions
  * -----------------
  * @param string $msg
  */</pre>
<pre> function debug($msg){
  $this-&gt;debugStack .= $msg."&lt;br&gt;\n";
 }</pre>
<pre>
 /**
  * String returnDebug
  * + Returns the debugstack.
  * -----------------
  * @return string $debugStack
  */
 function returnDebug(){
  return $this-&gt;debugStack;
 }</pre>
<pre>}</pre>
<pre>?&gt;</pre>
</blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=6&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/19/php-support-class-for-a-commerce-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>
	</item>
		<item>
		<title>First One</title>
		<link>http://mdalke.wordpress.com/2007/10/19/first-one/</link>
		<comments>http://mdalke.wordpress.com/2007/10/19/first-one/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 10:19:13 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[About Me]]></category>

		<guid isPermaLink="false">http://mdalke.wordpress.com/2007/10/19/first-one/</guid>
		<description><![CDATA[This is my first blog Well today is work day. I think i should start and explain what i do for a living ey. Well today i am a computer programmer, tommorrow i might be a web designer, the day after this i might be a pure buisness man. I like to keep myself busy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=3&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first blog <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well today is work d<a href="http://mdalke.files.wordpress.com/2007/10/programss1.jpg" title="Varisoft Simple Accounts SS1"></a>ay.</p>
<p>I think i should start and explain what i do for a living ey. Well today i am a computer programmer, tommorrow i might be a web designer, the day after this i might be a pure buisness man. I like to keep myself busy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyone my current project is Varisoft a software and web design company.</p>
<p>I am currently programming a very simple accounts program for them to sell.</p>
<p>I just wrote these lines for your information.</p>
<blockquote>
<pre>Dim dayOfYear As Integer, wkNumber As Integer
Dim compensation As Integer = 0
Dim oneDate As String
Dim firstDayDate As Date</pre>
<pre>dayOfYear = inDate.DayOfYear
oneDate = "1/1/" &amp; inDate.Year.ToString
firstDayDate = DateAndTime.DateValue(oneDate)</pre>
</blockquote>
<p>Anyways its looking very nice i will upload a few screen shots for you to browse on.<br />
Also if u want any information on the purchase of this program you can send me a email or a message <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Can i just boast and say this program is gonna blow the market for accounts programs appart for ease. I designed this especially for those who don&#8217;t generally have the time, computer knowledge or effort to use a complicated program. Also its designed so i can change it for a customer if they need to. I am real excited about this <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Anyway SS <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://mdalke.files.wordpress.com/2007/10/programss1.jpg" title="Varisoft Simple Accounts SS1"><img src="http://mdalke.files.wordpress.com/2007/10/programss1.thumbnail.jpg?w=497" alt="Varisoft Simple Accounts SS1" /></a><a href="http://mdalke.files.wordpress.com/2007/10/programss2.jpg" title="Varisoft SS 2"><img src="http://mdalke.files.wordpress.com/2007/10/programss2.thumbnail.jpg?w=497" alt="Varisoft SS 2" /></a></p>
<p>I am gonna be developing the interface over the day.</p>
<p>But anyways onto other things. Its Friday!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=3&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/19/first-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>

		<media:content url="http://mdalke.files.wordpress.com/2007/10/programss1.thumbnail.jpg" medium="image">
			<media:title type="html">Varisoft Simple Accounts SS1</media:title>
		</media:content>

		<media:content url="http://mdalke.files.wordpress.com/2007/10/programss2.thumbnail.jpg" medium="image">
			<media:title type="html">Varisoft SS 2</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://mdalke.wordpress.com/2007/10/19/hello-world/</link>
		<comments>http://mdalke.wordpress.com/2007/10/19/hello-world/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 09:48:57 +0000</pubDate>
		<dc:creator>mdalke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to my blog. I am interesting i tell thee.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=1&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to my blog.</p>
<p>I am interesting i tell thee.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mdalke.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mdalke.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mdalke.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mdalke.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mdalke.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mdalke.wordpress.com&amp;blog=1943713&amp;post=1&amp;subd=mdalke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mdalke.wordpress.com/2007/10/19/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e55101f6fda49fede502abaea52d9bc7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">MD</media:title>
		</media:content>
	</item>
	</channel>
</rss>
