<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Iact Training Blog</title>
	<link>http://iact.outsidethebox.ie/iactblog</link>
	<description>John Rowley's Training Blog</description>
	<pubDate>Fri, 24 Oct 2008 14:07:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Course Recommendations</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=51</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=51#comments</comments>
		<pubDate>Fri, 24 Oct 2008 14:02:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Dreamweaver Oct08]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=51</guid>
		<description><![CDATA[
www.ineasysteps.com - books on CSS, XHTML and javascript
HTML for the World Wide Web with XHTML and CSS: Visual QuickStart Guide, 5th Edition by Elizabeth Castro
css menus - http://css.maxdesign.com.au/listamatic/
website reference - www.sitepoint.com
Lytebox scripts: http://www.dolem.com/lytebox/
calendar scripts calendar.swazz.org/
John Rowley AT VODAPHONE DOT IE (SPELL VODA CORRECTLY)
0872457746

]]></description>
			<content:encoded><![CDATA[<ol>
<li>www.ineasysteps.com - books on CSS, XHTML and javascript</li>
<li>HTML for the World Wide Web with XHTML and CSS: Visual QuickStart Guide, 5th Edition by Elizabeth Castro</li>
<li>css menus - http://css.maxdesign.com.au/listamatic/</li>
<li>website reference - www.sitepoint.com</li>
<li>Lytebox scripts: http://www.dolem.com/lytebox/</li>
<li>calendar scripts <cite><strong>calendar</strong>.swazz.org/</cite></li>
<li>John Rowley AT VODAPHONE DOT IE (SPELL VODA CORRECTLY)</li>
<li>0872457746</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=51</wfw:commentRss>
		</item>
		<item>
		<title>For robert</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=50</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=50#comments</comments>
		<pubDate>Tue, 29 Jul 2008 19:06:25 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=50</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><?php<br />
include_once("dbconnect.inc.php");<br />
include_once("functions.inc.php");<br />
echo "
<p>I am the records file</p>
<p>&#8220;;</p>
<p>//SELECT ALL FIELDS FROM TABLE</p>
<p>#$sqlQuery = &#8220;SELECT * FROM robert1_dwarves where 1&#8243;;<br />
#$sqlQuery = &#8220;SELECT *FROM robert1_dwarves where zid=3&#8243;;<br />
$sqlQuery = &#8220;SELECT zid, name, concat(sha1(name),\&#8221;.doc\&#8221;) as uid, colour FROM robert1_dwarves where 1&#8243;;</p>
<p>echo &#8220;
<p>Query is:<br />$sqlQuery</p>
<p>&#8220;; </p>
<p>//Assign result of the query to a variable<br />
//this just indicates if it was valid or not<br />
$result = mysql_query($sqlQuery);</p>
<p>if (!$result) {</p>
<p>}</p>
<p>$numRows = mysql_num_rows($result);</p>
<p>echo &#8220;
<p>Number of records returned is: $numRows </p>
<p>&#8220;;</p>
<p>output_table_header();</p>
<p>while ( $record = mysql_fetch_assoc($result) ) {</p>
<p>output_row_start();<br />
output_cell($record[&#8217;zid&#8217;]);<br />
output_cell($record[&#8217;name&#8217;]);<br />
output_cell($record[&#8217;colour&#8217;]);<br />
output_cell($record[&#8217;uid&#8217;]);<br />
output_row_end();<br />
}</p>
<p>output_table_footer();<br />
?></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>DB Connection Code</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=49</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=49#comments</comments>
		<pubDate>Tue, 29 Jul 2008 18:41:26 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=49</guid>
		<description><![CDATA[$link_id=@mysql_connect(DB_CLIENT_SERVER,DB_CLIENT_USER,DB_CLIENT_PASSWORD);
if($link_id) {
 echo &#8220;&#60;p&#62;Successful Connection&#60;/p&#62;&#8221;;
}
 else {
 echo &#8220;&#60;p&#62;Unsuccessful Connection!&#60;/p&#62;&#8221;;
}
if ( mysql_select_db(DB_CLIENT_DATABASE,$link_id) ) {
 echo &#8220;&#60;p&#62;Successful Database Selection&#60;/p&#62;&#8221;;
} else {
die( &#8220;&#60;p&#62;Successful Database Selection&#60;/p&#62;&#8221; );
}
]]></description>
			<content:encoded><![CDATA[<p><a href="mailto:$link_id=@mysql_connect(DB_CLIENT_SERVER,DB_CLIENT_USER,DB_CLIENT_PASSWORD">$link_id=@mysql_connect(DB_CLIENT_SERVER,DB_CLIENT_USER,DB_CLIENT_PASSWORD</a>);</p>
<p>if($link_id) {<br />
 echo &#8220;&lt;p&gt;Successful Connection&lt;/p&gt;&#8221;;<br />
}<br />
 else {<br />
 echo &#8220;&lt;p&gt;Unsuccessful Connection!&lt;/p&gt;&#8221;;<br />
}<br />
if ( mysql_select_db(DB_CLIENT_DATABASE,$link_id) ) {<br />
 echo &#8220;&lt;p&gt;Successful Database Selection&lt;/p&gt;&#8221;;</p>
<p>} else {<br />
die( &#8220;&lt;p&gt;Successful Database Selection&lt;/p&gt;&#8221; );</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=49</wfw:commentRss>
		</item>
		<item>
		<title>Database Connection Code</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=48</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=48#comments</comments>
		<pubDate>Tue, 08 Jul 2008 17:46:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=48</guid>
		<description><![CDATA[//Image size is 291 * 191
error_reporting(E_ALL);
define(&#8221;DB_CLIENT_HOST&#8221;,&#8221;testsite.efiberart.com&#8221;);
define(&#8221;DB_CLIENT_SERVER&#8221;,&#8221;sql2.hosting365.ie&#8221;);
define(&#8221;DB_CLIENT_DATABASE&#8221;,&#8221;bleahy_AppDB&#8221;);
define(&#8221;DB_CLIENT_USER&#8221;,&#8221;bleahy_aleahy&#8221;);
define(&#8221;DB_CLIENT_PASSWORD&#8221;,&#8221;leahyb02&#8243;);
define(&#8221;TABLE_GALLERY&#8221;,&#8221;master_gallery&#8221;);
define(&#8221;SERVER_PATH&#8221;, &#8220;/hsphere/local/home/bleahy/testsite.efiberart.com&#8221;);
//echo $_SERVER[&#8217;PATH&#8217;];
//echo &#8220;&#60;P&#62;&#8221; . $_SERVER[&#8217;PATH_TRANSLATED&#8217;];
//echo &#8220;&#60;p&#62;&#8221; . $_SERVER[&#8217;HTTP_HOST&#8217;];
function getPages() {
return array(&#8221;main&#8221;,&#8221;conversations&#8221;,&#8221;");
}
if ($_SERVER[&#8217;HTTP_HOST&#8217;]==DB_CLIENT_HOST) {
$link_id=@mysql_connect(DB_CLIENT_SERVER,DB_CLIENT_USER,DB_CLIENT_PASSWORD);
if($link_id) {
//echo &#8220;Successful Connection&#8221;;
}
if(mysql_select_db(DB_CLIENT_DATABASE,$link_id)) {
//echo &#8220;&#60;p&#62;Connection to art site success&#8221;;
} else {
//echo &#8220;&#60;p&#62;Connection to art db not a success&#8221;;
}
}
]]></description>
			<content:encoded><![CDATA[<p>//Image size is 291 * 191<br />
error_reporting(E_ALL);<br />
define(&#8221;DB_CLIENT_HOST&#8221;,&#8221;testsite.efiberart.com&#8221;);<br />
define(&#8221;DB_CLIENT_SERVER&#8221;,&#8221;sql2.hosting365.ie&#8221;);<br />
define(&#8221;DB_CLIENT_DATABASE&#8221;,&#8221;bleahy_AppDB&#8221;);<br />
define(&#8221;DB_CLIENT_USER&#8221;,&#8221;bleahy_aleahy&#8221;);<br />
define(&#8221;DB_CLIENT_PASSWORD&#8221;,&#8221;leahyb02&#8243;);<br />
define(&#8221;TABLE_GALLERY&#8221;,&#8221;master_gallery&#8221;);<br />
define(&#8221;SERVER_PATH&#8221;, &#8220;/hsphere/local/home/bleahy/testsite.efiberart.com&#8221;);<br />
//echo $_SERVER[&#8217;PATH&#8217;];<br />
//echo &#8220;&lt;P&gt;&#8221; . $_SERVER[&#8217;PATH_TRANSLATED&#8217;];</p>
<p>//echo &#8220;&lt;p&gt;&#8221; . $_SERVER[&#8217;HTTP_HOST&#8217;];</p>
<p>function getPages() {</p>
<p>return array(&#8221;main&#8221;,&#8221;conversations&#8221;,&#8221;");</p>
<p>}</p>
<p>if ($_SERVER[&#8217;HTTP_HOST&#8217;]==DB_CLIENT_HOST) {</p>
<p>$link_id=@mysql_connect(DB_CLIENT_SERVER,DB_CLIENT_USER,DB_CLIENT_PASSWORD);</p>
<p>if($link_id) {<br />
//echo &#8220;Successful Connection&#8221;;<br />
}</p>
<p>if(mysql_select_db(DB_CLIENT_DATABASE,$link_id)) {<br />
//echo &#8220;&lt;p&gt;Connection to art site success&#8221;;<br />
} else {</p>
<p>//echo &#8220;&lt;p&gt;Connection to art db not a success&#8221;;<br />
}</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Web 2 - Final Day (carts, logins, sessions, config files0</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=47</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=47#comments</comments>
		<pubDate>Wed, 04 Jun 2008 15:41:02 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=47</guid>
		<description><![CDATA[header(&#8217;Content-type: application/pdf&#8217;);
readfile(&#8217;demo.pdf&#8217;);
//
config.inc.php
        define(&#8221;DEBUG_ON&#8221;, 1);
 define(&#8221;DB_HOST&#8221;,
 define(&#8221;DB_PASSWORD&#8221;,
 define(&#8221;DB_USER&#8221;,
 define(&#8221;TABLE_USER&#8221;,
 define(&#8221;FIELD_USER&#8221;,
 define(&#8221;FIELD_PASSWORD&#8221;,
 define(&#8221;FORM_LOGIN&#8221;,&#8217;formLogin&#8217;)
 
dbconnect.inc.php
login.php
 include_once(&#8221;config.inc.php&#8221;)
 include_once(&#8221;dbconnect.inc.php&#8221;)
 include_once(&#8221;foos.inc.php&#8221;)
 session_start()
 
 $formName= generateFormname(FORM_LOGIN);
 
 if ( !isset($_POST[&#8217;formID&#8217;]) &#124;&#124;
      !isset($_POST[&#8217;fieldName&#8217;]) &#124;&#124;
      !isset($_POST[&#8217;fieldPassword&#8217;]) &#124;&#124;
     strlen(trim($_POST[&#8217;fieldName&#8217;]))==0 &#124;&#124;
     strlen(trim($_POST[&#8217;fieldPassword&#8217;]))==0 &#124;&#124;
     $_POST[&#8217;formID&#8217;] != $formName
    
    
    
     ) {
  echo display_login_form();
  exit;
 } else {
 
 $cleanName=htmlspecialchars($_POST[&#8217;fieldName&#8217;])
 $cleanPasword=htmlspecialchars($_POST[&#8217;fieldPassword&#8217;])
 
 
 
   if (   !boolValidateLogin($cleanName, $cleanPassword) ) {
     $_SESSION=array(); //clear any session variables
     session_destroy();
    echo display_login_form();
  
  
   } else {
  
  
    //echo &#8220;Logging in&#8230;.&#8221;;
    $_SESSION[&#8217;loggedIn&#8217;]=1;
    header(&#8221;location: index.php&#8221;);
  
  
   } // else
 
 
 
 } // else [...]]]></description>
			<content:encoded><![CDATA[<p>header(&#8217;Content-type: application/pdf&#8217;);<br />
readfile(&#8217;demo.pdf&#8217;);<br />
//<br />
config.inc.php<br />
        define(&#8221;DEBUG_ON&#8221;, 1);<br />
 define(&#8221;DB_HOST&#8221;,<br />
 define(&#8221;DB_PASSWORD&#8221;,<br />
 define(&#8221;DB_USER&#8221;,<br />
 define(&#8221;TABLE_USER&#8221;,<br />
 define(&#8221;FIELD_USER&#8221;,<br />
 define(&#8221;FIELD_PASSWORD&#8221;,<br />
 define(&#8221;FORM_LOGIN&#8221;,&#8217;formLogin&#8217;)<br />
 </p>
<p>dbconnect.inc.php</p>
<p>login.php<br />
 include_once(&#8221;config.inc.php&#8221;)<br />
 include_once(&#8221;dbconnect.inc.php&#8221;)<br />
 include_once(&#8221;foos.inc.php&#8221;)<br />
 session_start()<br />
 <br />
 $formName= generateFormname(FORM_LOGIN);<br />
 <br />
 if ( !isset($_POST[&#8217;formID&#8217;]) ||<br />
      !isset($_POST[&#8217;fieldName&#8217;]) ||<br />
      !isset($_POST[&#8217;fieldPassword&#8217;]) ||<br />
     strlen(trim($_POST[&#8217;fieldName&#8217;]))==0 ||<br />
     strlen(trim($_POST[&#8217;fieldPassword&#8217;]))==0 ||<br />
     $_POST[&#8217;formID&#8217;] != $formName<br />
    <br />
    <br />
    <br />
     ) {<br />
  echo display_login_form();<br />
  exit;<br />
 } else {<br />
 <br />
 $cleanName=htmlspecialchars($_POST[&#8217;fieldName&#8217;])<br />
 $cleanPasword=htmlspecialchars($_POST[&#8217;fieldPassword&#8217;])<br />
 <br />
 <br />
 <br />
   if (   !boolValidateLogin($cleanName, $cleanPassword) ) {<br />
     $_SESSION=array(); //clear any session variables<br />
     session_destroy();<br />
    echo display_login_form();<br />
  <br />
  <br />
   } else {<br />
  <br />
  <br />
    //echo &#8220;Logging in&#8230;.&#8221;;<br />
    $_SESSION[&#8217;loggedIn&#8217;]=1;<br />
    header(&#8221;location: index.php&#8221;);<br />
  <br />
  <br />
   } // else<br />
 <br />
 <br />
 <br />
 } // else valid fields posted<br />
 <br />
 <br />
 <br />
 <br />
  fieldName<br />
  fieldPassword<br />
  login.php<br />
  post<br />
 <br />
 <br />
 <br />
 <br />
 <br />
index.php<br />
 session_start()<br />
 define(&#8221;INDEX_PAGEx&#8221;,1);<br />
 <br />
 if(!isset($_SESSION[&#8217;loggedIn&#8217;]) {<br />
 <br />
 header(&#8221;location: login.php&#8221;);<br />
 <br />
 }<br />
 <br />
 echo &#8220;This is index.php&#8221;;<br />
 echo &#8220;&lt;a href=&#8217;logout.php&#8217;&gt;Logout&lt;/a&gt;&#8221;;<br />
 <br />
 <br />
 <br />
foos.inc.php<br />
if(!defined(<br />
INDEX_PAGE)) exit;<br />
 function display_login_form() {<br />
 <br />
 $formName= generateFormname(FORM_LOGIN);<br />
 <br />
 <br />
 &lt;input type=&#8217;hidden&#8217; name=&#8217;formID&#8217; value=&#8217;$formName&#8217; /&gt;<br />
 <br />
 <br />
 }<br />
 <br />
 <br />
 <br />
 function generateFormname($formName) {<br />
 <br />
 <br />
 <br />
 <br />
  return sha1($formName . date(&#8221;mdy&#8221;));<br />
  <br />
  <br />
  <br />
 <br />
 <br />
 }<br />
 <br />
 <br />
 function trace($message) {<br />
 <br />
  if( DEBUG_ON) {<br />
   echo &#8220;&lt;p&gt;$message&lt;/p&gt;&#8221;;<br />
  }<br />
 <br />
 }<br />
 <br />
 <br />
 function boolValidateLogin($userName, $userPassword) {<br />
 <br />
 <br />
 <br />
 $sqlQuery = &#8220;SELECT * from &#8221; . TABLE_USER .<br />
            &#8221; WHERE &#8221; .<br />
            FIELD_NAME .<br />
            &#8220;=&#8217;$userName&#8217; AND &#8221; .<br />
            FIELD_PASSWORD .<br />
            &#8220;=&#8217;$userPassword&#8217;&#8221;;<br />
 trace($sqlQuery);<br />
 <br />
 if (! $result = mysql_query($sqlQuery) ) {<br />
 <br />
  die(&#8221;Unable to execute query &#8221; . mysql_error());<br />
 <br />
 } else {<br />
 <br />
  if (mysql_num_rows($result) == 1 {<br />
  <br />
  return 1;<br />
  <br />
  } else {<br />
  <br />
  return 0;<br />
  <br />
  }<br />
 <br />
 }<br />
 <br />
 exit;<br />
 <br />
 <br />
 return 0;<br />
 <br />
 }<br />
 <br />
logout.php<br />
 session_start();<br />
 $_SESSION=array(); //clear any session variables<br />
 session_destroy();<br />
 header(&#8221;location: index.php&#8221;);<br />
protected.php<br />
 if (!defined(INDEX_PAGE))<br />
  header(&#8221;location: index.php&#8221;);<br />
  <br />
  <br />
  <br />
  <br />
cart<br />
 Item 1 &lt;a href=&#8217;addtocart.php?id=1&#8242;&gt;Add to Cart&lt;/a&gt;<br />
 <br />
 <br />
 function countCartItems() {<br />
 <br />
 <br />
 return sizeof($_SESSION[&#8217;cart&#8217;]);<br />
 <br />
 }<br />
 <br />
 <br />
 echo &#8220;&lt;p&gt;Items in Cart: &#8221; . countCartItems() . &#8220;&lt;/p&gt;&#8221;;<br />
 <br />
 <br />
 <br />
 function initCart() {<br />
 <br />
 if (!isset($_SESSION[&#8217;cart&#8217;]))<br />
  $_SESSION[&#8217;cart&#8217;]=array();<br />
 <br />
 <br />
 <br />
 }<br />
 <br />
 <br />
 initCart();<br />
 <br />
 function add2Cart($id) {<br />
 <br />
 $_SESSION[&#8217;cart&#8217;][]=$id;<br />
 <br />
 <br />
 <br />
 <br />
 }<br />
 <br />
 add2Cart($_GET[&#8217;id&#8217;]);<br />
 header(&#8221;location: catalog.php&#8221;);<br />
 <br />
 <br />
 function showCart() {<br />
 <br />
 $count = countCartItems();<br />
 <br />
 for($i=0; $i &lt; $count; $i++) {<br />
 <br />
 echo &#8220;&lt;p&gt;&#8221; . $_SESSION[&#8217;cart&#8217;][$i] . &#8220;&lt;/p&gt;&#8221;;<br />
 <br />
 <br />
 }<br />
 <br />
 <br />
 <br />
 <br />
 }<br />
 <br />
 <br />
 <br />
 <br />
 function writeImage($filename) {<br />
 <br />
 <br />
 <br />
 echo &#8220;&lt;img src=&#8217;../images/$filename&#8217; /&gt;<br />
 <br />
 <br />
 <br />
 <br />
 }</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=47</wfw:commentRss>
		</item>
		<item>
		<title>tcu</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=46</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=46#comments</comments>
		<pubDate>Wed, 04 Jun 2008 13:51:37 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=46</guid>
		<description><![CDATA[index.cfm/page/boardpack?rdFolder=&#38;rdDF=boardapr08.pdf
]]></description>
			<content:encoded><![CDATA[<pre id="line100"><span class="attribute-value">index.cfm/page/boardpack?rdFolder=&amp;rdDF=boardapr08.pdf</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=46</wfw:commentRss>
		</item>
		<item>
		<title>Javascript Operators</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=45</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=45#comments</comments>
		<pubDate>Wed, 28 May 2008 12:06:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=45</guid>
		<description><![CDATA[http://www.webmasterworld.com/forum91/513.htm
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterworld.com/forum91/513.htm">http://www.webmasterworld.com/forum91/513.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>Ternary Operator</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=44</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=44#comments</comments>
		<pubDate>Wed, 28 May 2008 11:59:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=44</guid>
		<description><![CDATA[
var b=5;
(b == 5) ? a=&#8221;true&#8221; : a=&#8221;false&#8221;;
document.write(&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8220;+a);

]]></description>
			<content:encoded><![CDATA[<p><font color="green"><br />
var b=5;<br />
(b == 5) ? a=&#8221;true&#8221; : a=&#8221;false&#8221;;<br />
document.write(&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8220;+a);</p>
<p></font></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=44</wfw:commentRss>
		</item>
		<item>
		<title>CSS - Free Chapter on CSS Layouts</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=43</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=43#comments</comments>
		<pubDate>Wed, 28 May 2008 11:11:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Books]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[downloads]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=43</guid>
		<description><![CDATA[http://www.friendsofed.com/samples/1590596145.pdf
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.friendsofed.com/samples/1590596145.pdf">http://www.friendsofed.com/samples/1590596145.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>CSS - Menus - Listamatic</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=42</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=42#comments</comments>
		<pubDate>Wed, 28 May 2008 10:59:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=42</guid>
		<description><![CDATA[http://css.maxdesign.com.au/listamatic/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://css.maxdesign.com.au/listamatic/">http://css.maxdesign.com.au/listamatic/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=42</wfw:commentRss>
		</item>
		<item>
		<title>Arrays - O&#8217;Reilly Article</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=41</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=41#comments</comments>
		<pubDate>Wed, 28 May 2008 10:49:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Arrays]]></category>

		<category><![CDATA[Books]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=41</guid>
		<description><![CDATA[http://www.oreilly.com/catalog/progphp/chapter/ch05.html
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oreilly.com/catalog/progphp/chapter/ch05.html">http://www.oreilly.com/catalog/progphp/chapter/ch05.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=41</wfw:commentRss>
		</item>
		<item>
		<title>Exercise - PHP - Event Manager</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=40</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=40#comments</comments>
		<pubDate>Tue, 13 May 2008 12:03:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Exercise]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=40</guid>
		<description><![CDATA[Create a form that contains a date select box, a performance times select box, a header description and a body description.
The date select box should be formatted in the form &#8220;Monday May 13th 2008&#8243;. It should show the next 30 days from the current date.
The  PerformanceTimes select box should show three performance times: 15:00, 20:00 [...]]]></description>
			<content:encoded><![CDATA[<p>Create a form that contains a date select box, a performance times select box, a header description and a body description.</p>
<p>The date select box should be formatted in the form &#8220;Monday May 13th 2008&#8243;. It should show the next 30 days from the current date.</p>
<p>The  PerformanceTimes select box should show three performance times: 15:00, 20:00 and 21:00.</p>
<p>The Performance Times should be stored as an array and a foreach loop used to display.</p>
<p>The Header is a text input field and should allow for 50 characters. It will handle main title of the performance such as &#8221; Joe Bloggs and his Merry Band&#8221;</p>
<p>The Body content is a longer description of the event.</p>
<p>The form is in a page called createevent.php</p>
<p>The form is processed by a page called processevent.php</p>
<p>The form is POSTED</p>
<p>No javascript validation is required</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=40</wfw:commentRss>
		</item>
		<item>
		<title>Subversion Commands</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=39</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=39#comments</comments>
		<pubDate>Fri, 02 May 2008 20:00:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=39</guid>
		<description><![CDATA[svn checkout file:///c:/repositories/testrepos/testing
svnadmin create c:/repositories/testing
svn import c:\testfolder file:///c:/repositories/testrepos/testing
svn status -v
Lists changes in the system
]]></description>
			<content:encoded><![CDATA[<p>svn checkout file:///c:/repositories/testrepos/testing</p>
<p>svnadmin create c:/repositories/testing</p>
<p>svn import c:\testfolder file:///c:/repositories/testrepos/testing</p>
<p>svn status -v<br />
Lists changes in the system</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=39</wfw:commentRss>
		</item>
		<item>
		<title>Mysql - Updating a field example</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=37</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=37#comments</comments>
		<pubDate>Wed, 23 Apr 2008 15:57:58 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=37</guid>
		<description><![CDATA[update DB_TABLE set field1=&#8217;x', field2=&#8217;y&#8217; WHERE zid=&#8217;???????&#8217;;
update DB_TABLE set field2=&#8217;y&#8217; WHERE date=&#8217;2008-04-28&#8242;;
update DB_TABLE set field1=&#8217;x&#8217; WHERE name=&#8217;John&#8217;;
]]></description>
			<content:encoded><![CDATA[<p>update DB_TABLE set field1=&#8217;x', field2=&#8217;y&#8217; WHERE zid=&#8217;???????&#8217;;</p>
<p>update DB_TABLE set field2=&#8217;y&#8217; WHERE date=&#8217;2008-04-28&#8242;;</p>
<p>update DB_TABLE set field1=&#8217;x&#8217; WHERE name=&#8217;John&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=37</wfw:commentRss>
		</item>
		<item>
		<title>Class Exercise 23-04-08</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=36</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=36#comments</comments>
		<pubDate>Wed, 23 Apr 2008 15:50:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Exercise]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=36</guid>
		<description><![CDATA[
Read up date functions and create ten different examples demonstrating how the date function works
Read up on string functions and create ten different examples demonstrating how the various functions work - illustrating string length, replacing within strings, removing space from the start and end of strings, getting the first 5 letters of a string, locating [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Read up date functions and create ten different examples demonstrating how the date function works</li>
<li>Read up on string functions and create ten different examples demonstrating how the various functions work - illustrating string length, replacing within strings, removing space from the start and end of strings, getting the first 5 letters of a string, locating the position of a character in a string, taking a string of the form &#8220;&#8216;Name Surname&#8221; and extracting the surname from the string regardless what length the string is</li>
<li>Read up on Javascript arrays and event handlers</li>
<li>Create a table called mydates with zid and a mydate field which is datetime. Using code from today, create a form that creates records with different dates</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=36</wfw:commentRss>
		</item>
		<item>
		<title>Javascript Form Validation</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=35</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=35#comments</comments>
		<pubDate>Wed, 23 Apr 2008 11:52:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Validation]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=35</guid>
		<description><![CDATA[http://www.tizag.com/javascriptT/javascriptform.php
]]></description>
			<content:encoded><![CDATA[<p>http://www.tizag.com/javascriptT/javascriptform.php</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=35</wfw:commentRss>
		</item>
		<item>
		<title>Linux Commands</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=34</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=34#comments</comments>
		<pubDate>Wed, 23 Apr 2008 10:48:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=34</guid>
		<description><![CDATA[http://www.reallylinux.com/docs/direct.html
rm -r ??0208 // removes all directories and sub directories etc.
]]></description>
			<content:encoded><![CDATA[<p>http://www.reallylinux.com/docs/direct.html</p>
<p>rm -r ??0208 // removes all directories and sub directories etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=34</wfw:commentRss>
		</item>
		<item>
		<title>PHP Login / AuthenticationFunction</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=33</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=33#comments</comments>
		<pubDate>Wed, 23 Apr 2008 08:43:52 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=33</guid>
		<description><![CDATA[$cleanName = htmlspecialchars($_POST[&#8217;fieldName&#8217;]);
$cleanPassword = htmlspecialchars($_POST[&#8217;fieldPassword&#8217;]);
validateuser($cleanName, $cleanPassword);
function validateUser($fieldName, $fieldPassword) {
$sqlQuery = &#8220;SELECT * from TABLE_USERS WHERE username = $fieldName AND upassword = $fieldPassword&#8221;;
$result = mysql_query();
if(!$result) die(mysql_error());
if ( mysql_num_rows($result) == 1) return 1;
return 0;
}
]]></description>
			<content:encoded><![CDATA[<p>$cleanName = htmlspecialchars($_POST[&#8217;fieldName&#8217;]);<br />
$cleanPassword = htmlspecialchars($_POST[&#8217;fieldPassword&#8217;]);</p>
<p>validateuser($cleanName, $cleanPassword);</p>
<p>function validateUser($fieldName, $fieldPassword) {</p>
<p>$sqlQuery = &#8220;SELECT * from TABLE_USERS WHERE username = $fieldName AND upassword = $fieldPassword&#8221;;</p>
<p>$result = mysql_query();</p>
<p>if(!$result) die(mysql_error());</p>
<p>if ( mysql_num_rows($result) == 1) return 1;</p>
<p>return 0;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=33</wfw:commentRss>
		</item>
		<item>
		<title>PHP Exercise - Out of Office Calendar</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=32</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=32#comments</comments>
		<pubDate>Tue, 22 Apr 2008 13:02:31 +0000</pubDate>
		<dc:creator>johnrowley</dc:creator>
		
		<category><![CDATA[Exercise]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=32</guid>
		<description><![CDATA[Your office requires a web-based Out of Office Calendar showing what staff are present or absent over a fornight period. The table-based calendar should date back to the previous Monday and display staff entries for two weeks. Staff can login and choose a date from a drop-down list and set the type of Absence they [...]]]></description>
			<content:encoded><![CDATA[<p>Your office requires a web-based Out of Office Calendar showing what staff are present or absent over a fornight period. The table-based calendar should date back to the previous Monday and display staff entries for two weeks. Staff can login and choose a date from a drop-down list and set the type of Absence they are planning (O/B, V, O/B am, O/B pm, V am, V pm). Staff must login to change their details.</p>
<p>Create a database with at least 10 users, each with a username and encrypted password.</p>
<p>A user must login in order to view the timetable. Failed logins redirect to the login page.</p>
<p>A logout link must be availalbe. When the user logs out, the program redirects back to the login page.</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=32</wfw:commentRss>
		</item>
		<item>
		<title>PHP - MySQL Class Day 3/4 (21-04-08)</title>
		<link>http://iact.outsidethebox.ie/iactblog/?p=31</link>
		<comments>http://iact.outsidethebox.ie/iactblog/?p=31#comments</comments>
		<pubDate>Tue, 22 Apr 2008 08:03:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iact.outsidethebox.ie/iactblog/?p=31</guid>
		<description><![CDATA[String Handling and Theory
Date Handling and Theory
Timetable Exercise
]]></description>
			<content:encoded><![CDATA[<p>String Handling and Theory</p>
<p>Date Handling and Theory</p>
<p>Timetable Exercise</p>
]]></content:encoded>
			<wfw:commentRss>http://iact.outsidethebox.ie/iactblog/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
	</channel>
</rss>

