<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Blog Entries</title>
		<description>Blog Entries</description>
		<link>http://www.bohemiawebsites.com</link>
		<lastBuildDate>Fri, 18 May 2012 07:03:15 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>PHP Sort Function</title>
			<link>http://www.bohemiawebsites.com/PHP-Sort-Function.html</link>
			<description>&lt;br/&gt;PHP Sort Function&lt;br/&gt;The PHP sort() function is a simple way to sort an array.The sort() function removes old keys and makes new ones. Although the results can be unpredictable in some instances, it can be useful in sorting arryas alphabetically or by date. &lt;br /&gt;&lt;br/&gt;To use the sort function,&lt;br /&gt;&lt;br/&gt;1) Add the array inside sort().&lt;br /&gt;&lt;br/&gt;ie) sort($myarray);</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 17 May 2012 14:47:43 +0100</pubDate>
		</item>
		<item>
			<title>PHP Array Diff</title>
			<link>http://www.bohemiawebsites.com/PHP-Array-Diff.html</link>
			<description>&lt;br/&gt;PHP Array Diff&lt;br/&gt;With the array_diff() function, you can compare 2 arrays and get the difference between the two of them. The code below takes ids from one table and compares it to the ids of another table.&lt;br/&gt;## Get first array&lt;br /&gt;&lt;br/&gt;$command = &quot;SELECT * FROM table1 &quot;;&lt;br /&gt;&lt;br/&gt;$result = mysql_query($command, $db);&lt;br /&gt;&lt;br/&gt;while($row = mysql_fetch_assoc($result)) {&lt;br /&gt;&lt;br/&gt;$id = $row['ID'];&lt;br /&gt;&lt;br/&gt;$ID1[] = $id;&lt;br /&gt;&lt;br/&gt;}&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;## Get second array&lt;br /&gt;&lt;br/&gt;$command2 = &quot;SELECT * FROM table2 &quot;;&lt; [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 17 May 2012 14:42:14 +0100</pubDate>
		</item>
		<item>
			<title>PHP Double While Loops</title>
			<link>http://www.bohemiawebsites.com/PHP-Double-While-Loops.html</link>
			<description>&lt;br/&gt;PHP Double While Loops&lt;br/&gt;Using while loops, you can extract rows of data for which you and create variables with the results. Afterwards, you can use the variables to sort through more data. When sorting through databases, you can write single queries to obtain rows from one or more tables. However, from time to time, you may find that one query is not enough to obtain the data you want; no matter how creative you make your relational database queries.    The next two examples show has one quer [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Wed, 25 Apr 2012 02:13:26 +0100</pubDate>
		</item>
		<item>
			<title>Null Column With PHPMYADMIN</title>
			<link>http://www.bohemiawebsites.com/Null-Column-With-PHPMYADMIN.html</link>
			<description>&lt;br/&gt;PHPMYADMIN Null Column Default Value&lt;br/&gt;When an entry is added to a database, you could insert 'NULL' by default if wish to do so. One such example could be that you have a form and the user can insert their email address or leave it blank. If it is left blank, the default 'NULL' value can be inserted instead.&lt;br/&gt;To make the column value NULL,&lt;br /&gt;&lt;br/&gt;1) Open PHPMYADMIN.&lt;br /&gt;&lt;br/&gt;2) Select Structure.&lt;br /&gt;&lt;br/&gt;3) Select edit for the desired column.&lt;br /&gt;&lt;br/&gt;4) Select 'Null' for default.&lt;br /&gt;&lt;br/&gt;5) Click th [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sat, 21 Apr 2012 04:52:51 +0100</pubDate>
		</item>
		<item>
			<title>PHP Finding Text in a String With Preg_Match() or strpos()</title>
			<link>http://www.bohemiawebsites.com/PHP-Finding-Text-in-a-String-With-Preg-Match-or-strpos.html</link>
			<description>&lt;br/&gt;PHP Finding Text in a String&lt;br/&gt;With PHP, you may want to see if text exists in a string. For example, you may have database output from an api and you want to search the rows for particular string. Or, you may want to make conditional statements based on the database output. For example, you may to sort the same 'John' from all other names in a loop. The code below shows two methods for doing so using the preg_match() function and the strpos() function.&lt;br/&gt;&amp;lt;?php &lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160; &amp;#160;&amp;#16 [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sat, 21 Apr 2012 04:35:45 +0100</pubDate>
		</item>
		<item>
			<title>PHP Parse error: syntax error, unexpected</title>
			<link>http://www.bohemiawebsites.com/PHP-Parse-error-syntax-error-unexpected.html</link>
			<description>&lt;br/&gt;PHP Parse error: syntax error, unexpected '}', expecting ']'&lt;br/&gt;PHP is quite good at helping you fix errors. At times, you may make the od mistake by closing a bracket with a square bracket when it should be a curly brace. The code below is an example for which you should go to line 22 and fix the error.&lt;br/&gt;Parse error: syntax error, unexpected '}', expecting ']' in /home/myaccount/file.php on line 22</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sat, 21 Apr 2012 04:10:46 +0100</pubDate>
		</item>
		<item>
			<title>PHP Parse error: syntax error, unexpected T_STRING</title>
			<link>http://www.bohemiawebsites.com/PHP-Parse-error-syntax-error-unexpected-T-STRING.html</link>
			<description>&lt;br/&gt;PHP Parse error: syntax error, unexpected T_STRING&lt;br/&gt;PHP programmers will see error codes during development. One such error is 'unexpected T_STRING'. This error usually means a semi-colon is missing. The error code will give a line number and it is best to start from there. Then, correct the error and try again. below is an example of the error as it would be displayed in a browser.&lt;br/&gt;Parse error: syntax error, unexpected T_STRING in /home/myaccount/public_html/myfile.php on line 42</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sat, 21 Apr 2012 04:06:41 +0100</pubDate>
		</item>
		<item>
			<title>Changing CSS With JQuery On Change</title>
			<link>http://www.bohemiawebsites.com/Changing-CSS-With-JQuery-On-Change.html</link>
			<description>&lt;br/&gt;Changing CSS With JQuery&lt;br/&gt;JQuery makes it very simple to alter css properties for an element, id, or class. The code below shows how an input value can become orange in case the number is greater than 10. &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Initially, the change() function is activated when an input field changes. It is similar to Javascript's onchange attribute. Then, the value is stored as an object with $(this).val() and the class is stored as an object $(this).attr('class').&amp;#160; Now, conditional statements  [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sat, 21 Apr 2012 03:36:41 +0100</pubDate>
		</item>
		<item>
			<title>PHP Loops and Options</title>
			<link>http://www.bohemiawebsites.com/PHP-Loops-and-Options.html</link>
			<description>&lt;br/&gt;PHP Loops and Resources&lt;br/&gt;First of all, not all loops are created equal. When coding in PHP or any other language for that matter, it never hurts to write code that is highly optimized. With PHP, there are so many ways to do things that you will see code written in all sorts of ways. And loops are particularly vulnerable to such unorthodox ways for which they can be written. Since loops are often written within loops, a multitude of options are available. For example, you may query a database a [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 16 Apr 2012 20:43:05 +0100</pubDate>
		</item>
		<item>
			<title>Opening HTML Or PHP At Specific Spot</title>
			<link>http://www.bohemiawebsites.com/Opening-HTML-Or-PHP-At-Specific-Spot.html</link>
			<description>&lt;br/&gt;Opening A Web page At A Specific Spot&lt;br/&gt;You probably have noticed that you had seen a website load that did not start at the top. Instead, it started somewhere in the middle. When you link to a page, or post a form with php, you can always specify where you want the top of the page. The link or code to start a page at a specific spot looks like http://excample.com/#article_id. The code below shows a couple of samples of how the codes will look as a link and a form post field in PHP.&lt;br /&gt;&lt;br/&gt;HTML [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 16 Apr 2012 18:13:02 +0100</pubDate>
		</item>
		<item>
			<title>Print Page Button HTML</title>
			<link>http://www.bohemiawebsites.com/Print-Page-Button-HTML.html</link>
			<description>&lt;br/&gt;Print Page Button With HTML&lt;br/&gt;Here is a little snippet which allows you to print a page. When the print button is selected, you will be able to select a print, adjust settings(if desired) and print the page.&lt;br/&gt;&amp;lt;style&amp;gt; &lt;br /&gt;&lt;br/&gt;@media print {&lt;br /&gt;&lt;br/&gt;.do_no_print {&lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; display:none;&lt;br /&gt;&lt;br/&gt;}&lt;br /&gt;&lt;br/&gt;}&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;div&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;form class='do_no_print'&amp;gt;&amp;lt;input type=&quot;button&quot; value=&quot;Print Page&quot;&lt;br /&gt;&lt;br/&gt;onclick=&quot;window.print();return false;&quot; /&amp;gt [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 16 Apr 2012 18:02:27 +0100</pubDate>
		</item>
		<item>
			<title>Javascript Passing Values Into Function</title>
			<link>http://www.bohemiawebsites.com/Javascript-Passing-Values-Into-Function.html</link>
			<description>&lt;br/&gt;Passing Values Into Javascript Function&lt;br/&gt;Here are two methods for which you can use DOM(Document Object Model) to use values within html forms. &lt;br /&gt;&lt;br/&gt;Example 1: &lt;br /&gt;&lt;br/&gt;When someone clicks the button, the value 25 become a parameter for the get_price() function.&amp;#160; It becomes 'value'.&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;script&amp;gt;&lt;br /&gt;&lt;br/&gt;function get_price(value){&lt;br /&gt;&lt;br/&gt;var price1 = document.getElementById(&quot;myid&quot;).value;&lt;br /&gt;&lt;br/&gt;//return true;&lt;br /&gt;&lt;br/&gt;alert(&quot;Price is: $&quot;+ pr [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 16 Apr 2012 17:43:06 +0100</pubDate>
		</item>
		<item>
			<title>PHP MYSQL Update Multiple Rows</title>
			<link>http://www.bohemiawebsites.com/PHP-MYSQL-Update-Multiple-Rows.html</link>
			<description>&lt;br/&gt;PHP / MYSQL Updating Multiple Rows&lt;br/&gt;Update is one of the main features for CRUD (Create, Read, Update and Delete). Normally, updating a database is performed on single entries or rows; such as users changing a profile or updating an address. However, using the for loop, you can update multiple records at once. For example, you could have a list of players on a footbal team and you need to adjust their weights for a particular reason. The script below shows how all entries of a table can be out [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 16 Apr 2012 15:27:30 +0100</pubDate>
		</item>
		<item>
			<title>CSS Background Transparency</title>
			<link>http://www.bohemiawebsites.com/CSS-Background-Transparency.html</link>
			<description>&lt;br/&gt;CSS Background Transparency&lt;br/&gt;You can make a background color transparent withthe following css properties.&lt;br /&gt;&lt;br/&gt;color:red;&lt;br /&gt;&lt;br/&gt;filter:alpha(opacity=75);&lt;br /&gt;&lt;br/&gt;opacity:.75;</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Fri, 13 Apr 2012 03:22:14 +0100</pubDate>
		</item>
		<item>
			<title>Joomla Custom Registration Messages</title>
			<link>http://www.bohemiawebsites.com/Joomla-Custom-Registration-Messages.html</link>
			<description>&lt;br/&gt;Joomla Custom Registration Messages&lt;br/&gt;Joomla is often used as a portal for which users can sign up and login. Once they login, they can use the site as you desire. Meanwhile, when a new user does register, they often receive a registration confirmation message via email. The message is rather standard. However, you can always change and customize many Joomla user messages within a file called en-GB.com_user.ini. The file is located in the path language/en-GB/en-GB.com_user.ini. Below is an exam [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 02 Apr 2012 02:14:09 +0100</pubDate>
		</item>
		<item>
			<title>PHP Continue Control Structure</title>
			<link>http://www.bohemiawebsites.com/PHP-Continue-Control-Structure.html</link>
			<description>&lt;br/&gt;Using PHP Continue&lt;br/&gt;PHP continue is a 'control structure' that belongs to a group with other control structures such as if, else, while, foreach and more. Its main use is to skip something. A popular place you may encounter 'continue' is within a loop. When it is used within a loops, it is used to 'skip something'. The code belowe shows how it can be used to skip an item in an array.&lt;br/&gt;$myarray = array(Pete,Sam,John);&lt;br /&gt;&lt;br/&gt;foreach($myarray as $name) {&lt;br /&gt;&lt;br/&gt;&amp;#160; if($name == Sam) {&lt;br /&gt;&lt;br/&gt;&amp; [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 02 Apr 2012 02:03:49 +0100</pubDate>
		</item>
		<item>
			<title>How To Make A Custom Joomla Template</title>
			<link>http://www.bohemiawebsites.com/How-To-Make-A-Custom-Joomla-Template.html</link>
			<description>&lt;br/&gt;How To Make a Custom Joomla Template&lt;br/&gt;How To Make A Custom Joomla Template Making a Joomla template is very similar to hand-coding a typical html/css template. However, there are slight changes in the coding and concepts. The main file which is responsible for the output of a Joomla template is index.php. Index.php can be coded between the body tags with plain old div tags. But, you can make it modular by adding tags which can be used to add custom modules. The page which holds the details for [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Mon, 26 Mar 2012 00:44:55 +0100</pubDate>
		</item>
		<item>
			<title>PHP Download Multiple Files</title>
			<link>http://www.bohemiawebsites.com/PHP-Download-Multiple-Files.html</link>
			<description>&lt;br/&gt;PHP Download Multiple Files&lt;br/&gt;Below is the code which grabs file names to download and passes those names into the url.&lt;br/&gt;&amp;lt;form method=&quot;post&quot; action=&quot;&amp;lt;?php echo $_SERVER['PHP_SELF']; ?&amp;gt;&quot;&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;input type=&quot;submit&quot; name=&quot;file1&quot; value=&quot;file1.pdf&quot;/&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;input type=&quot;submit&quot; name=&quot;file2&quot; value =&quot;file2.pdf&quot;/&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;getfile&quot; value =&quot;&quot;/&amp;gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;?php if($_POST['file1']){&lt;br /&gt;&lt;br/&gt;$filename=$_POST['file1'];&lt;br / [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 25 Mar 2012 20:53:06 +0100</pubDate>
		</item>
		<item>
			<title>PHP Download Script</title>
			<link>http://www.bohemiawebsites.com/PHP-Download-Script.html</link>
			<description>&lt;br/&gt;PHP Download Script&lt;br/&gt;With PHP, you can easily make a file accessible to download. PHP goes through a series of steps to make the downloading possible. The code below shows how PHP can find a file, make an application for it to download, name the new downloadable file, open the file, output the file data and close the data.&amp;#160;&lt;br/&gt;To download a file,&lt;br /&gt;&lt;br/&gt;1) Make a link to the download PHP page.&lt;br /&gt;&lt;br/&gt;Code:&lt;br /&gt;&lt;br/&gt;2) Add the code to the my_download.php page.&lt;br /&gt;&lt;br/&gt;Code:&lt;br /&gt;&lt;br/&gt;&amp;lt;a href=&quot;m [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 25 Mar 2012 03:09:01 +0100</pubDate>
		</item>
		<item>
			<title>Get Maximum Value of Column with PHP MYSQL</title>
			<link>http://www.bohemiawebsites.com/Get-Maximum-Value-of-Column-with-PHP-MYSQL.html</link>
			<description>&lt;br/&gt;Get Maximum Value of Column with MYSQL with MAX() and ORDER BY&lt;br/&gt;With mysql, you can use the MAX() function to get the highest value in a column. The column could have data like ages, auto incrementing ids or weights. If you want just the highest value, the max() function will output that value. If you want a list of values starting with the highest number, you use the 'ORDER BY' condition in a mysql query to output the data based on what you want; such as highewst value or most recent date. Th [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Fri, 23 Mar 2012 04:25:41 +0100</pubDate>
		</item>
	</channel>
</rss>
