<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Blog Entries for bohemia</title>
		<description>Blog Entries for bohemia</description>
		<link>http://www.bohemiawebsites.com</link>
		<lastBuildDate>Tue, 07 Feb 2012 19:57:34 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title> PHP Accessing Properties and Methods</title>
			<link>http://www.bohemiawebsites.com/PHP-Accessing-Properties-and-Methods.html</link>
			<description>&lt;br/&gt;With PHP OOP, you can declare properties and methods to be public, private and protected. Depending on the circumstances, you will have the option to choose the ideal method for which to control properties and functions. All methods and properties can be defined within their class.&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Public  &lt;br /&gt;&lt;br/&gt;Public properties or methods can be accessed anywhere in various classes &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Public variables:&lt;br /&gt;&lt;br/&gt;public $variable;&lt;br /&gt;&lt;br/&gt;public $variable2;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Public func [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 05 Feb 2012 21:47:45 +0100</pubDate>
		</item>
		<item>
			<title>Strip Tags PHP</title>
			<link>http://www.bohemiawebsites.com/Strip-Tags-PHP.html</link>
			<description>&lt;br/&gt;Stripping HTML Tags From Database Output&lt;br/&gt;When you output data from a mysql database, the text could be html code with various tags such as &amp;lt;p&amp;gt;, &amp;lt;div&amp;gt; and span. Therefore, if you just selected the text for output you could end up with undesired output. &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Now, let's assume that you want to convert the html into plain text just as though it was interpreted from a browser. What you need to do is remove the whitespace and html tags and display the words you want to see. W [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 05 Feb 2012 16:13:41 +0100</pubDate>
		</item>
		<item>
			<title>PHP Object Oriented Programming</title>
			<link>http://www.bohemiawebsites.com/PHP-Object-Oriented-Programming.html</link>
			<description>&lt;br/&gt;OOP Programming in PHP&lt;br/&gt;Depending on one's background and learning methods, a PHP programmer is often lead to examine Procedural PHP vs OOP in PHP. &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;For the serious individual who want to program in PHP, learning both methods opens much more doors. Even if you never code in OOP, knowing how to read it will allow you to see what is going on in other people's code. Chances are if you use large open source OOP in PHP you will want to edit or redo blocks of code. If you don't know O [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Fri, 03 Feb 2012 04:48:48 +0100</pubDate>
		</item>
		<item>
			<title>PHP Built-In Functions</title>
			<link>http://www.bohemiawebsites.com/PHP-Built-In-Functions.html</link>
			<description>&lt;br/&gt;PHP Built In Functions&lt;br/&gt;Here is a list of common PHP fuinctions and their usage.&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Execute a mysql query&lt;br /&gt;&lt;br/&gt;mysql_query()&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Connect To MYSQL Database&lt;br /&gt;&lt;br/&gt;mysql_connect()&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Fetch arrays from Database Using a Select&lt;br /&gt;&lt;br/&gt;mysql_fetch_assoc()&lt;br /&gt;&lt;br/&gt;mysql_fetch_array()&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Fetch Object from Database Using a Select Query&lt;br /&gt;&lt;br/&gt;mysql_fetch_object()&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Get the number of rows from a query&lt;br /&gt;&lt;br/&gt;mysql_num_rows()&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;The [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Fri, 03 Feb 2012 04:38:02 +0100</pubDate>
		</item>
		<item>
			<title>PHP Constructs</title>
			<link>http://www.bohemiawebsites.com/PHP-Constructs.html</link>
			<description>&lt;br/&gt;PHP Language Constructs&lt;br/&gt;PHP has many built-in language constructs and functions. Language constructs can be used with or without parentheses while functions always have parentheses. Here is an example using a language construct. With brackets: require_once('filename.php') Without Brackets: require_once 'filename.php'&lt;br/&gt;Here is a list of several PHP constructs which will be used quite frequently in even the simplest PHP / mySQL applications.&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Printing strings and variables&lt;br /&gt;&lt;br/&gt; [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Fri, 03 Feb 2012 04:35:42 +0100</pubDate>
		</item>
		<item>
			<title>Remove Index With PHPMYADMIN</title>
			<link>http://www.bohemiawebsites.com/Remove-Index-With-PHPMYADMIN.html</link>
			<description>&lt;br/&gt;Remove Unique Index With PHPMYADMIN&lt;br/&gt;To remove unique index of a column,&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;1) Open PHPMYADMIN&lt;br /&gt;&lt;br/&gt;2) Select database &amp;gt;database table &amp;gt;Structure &amp;gt;(Select from option a or b below)&lt;br /&gt;&lt;br/&gt;3) Look for Indexes Table which is below the main table.&lt;br /&gt;&lt;br/&gt;4) Change or remove the unique index</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:50:53 +0100</pubDate>
		</item>
		<item>
			<title>Unique MYSQL Columns With PHPMYADMIN</title>
			<link>http://www.bohemiawebsites.com/Unique-MYSQL-Columns-With-PHPMYADMIN.html</link>
			<description>&lt;br/&gt;Unique MYSQL Columns With PHPMYADMIN&lt;br/&gt;Alter a table to create unique columns. This will ensure there is no duplicate values in a column that is unique.&lt;br /&gt;&lt;br/&gt;1) Open PHPMYADMIN&lt;br /&gt;&lt;br/&gt;2) Select database &amp;gt;database table &amp;gt;Structure &amp;gt;(Select from option a or b below)&lt;br /&gt;&lt;br/&gt;a) Look for Arrow next to More or U icon &amp;gt;Add Unique Index&lt;br /&gt;&lt;br/&gt;b) Look for index &amp;gt;Click Edit next to desired field &amp;gt;Next to index type select Unique</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:43:24 +0100</pubDate>
		</item>
		<item>
			<title>Unique MYSQL Table Creation</title>
			<link>http://www.bohemiawebsites.com/Unique-MYSQL-Table-Creation.html</link>
			<description>&lt;br/&gt;Unique MYSQL Table Creation&lt;br/&gt;Create a Table where only there is no duplicate firstname / lastname combinations&lt;br/&gt;CREATE TABLE members&lt;br /&gt;&lt;br/&gt;(&lt;br /&gt;&lt;br/&gt;lastname varchar(30) NOT NULL,&lt;br /&gt;&lt;br/&gt;firstname varchar(30) NOT NULL,&lt;br /&gt;&lt;br/&gt;UNIQUE (lastname, firstname)&lt;br /&gt;&lt;br/&gt;);</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:40:25 +0100</pubDate>
		</item>
		<item>
			<title>Create a New MYSQL Table With Unique</title>
			<link>http://www.bohemiawebsites.com/Create-a-New-MYSQL-Table-With-Unique.html</link>
			<description>&lt;br/&gt;Unique MYSQL Table Creation&lt;br/&gt;Create a Table where only there is no duplicate firstname / lastname combinations&lt;br/&gt;CREATE TABLE members&lt;br /&gt;&lt;br/&gt;(&lt;br /&gt;&lt;br/&gt;lastname varchar(30) NOT NULL,&lt;br /&gt;&lt;br/&gt;firstname varchar(30) NOT NULL,&lt;br /&gt;&lt;br/&gt;UNIQUE (lastname, firstname)&lt;br /&gt;&lt;br/&gt;);</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:38:06 +0100</pubDate>
		</item>
		<item>
			<title>MYSQL Unique Columns</title>
			<link>http://www.bohemiawebsites.com/MYSQL-Unique-Columns.html</link>
			<description>&lt;br/&gt;MYSQL Add a Unique Column&lt;br/&gt;The code below creates a new column called username to the table called mytable. The username must be unique. In other words, if you use an insert statement and a username already exists, the data will no be duplicated.&lt;br/&gt;alter table mytable add unique (username);&lt;br /&gt;&lt;br/&gt;ALTER TABLE `mytable` ADD UNIQUE (`username`)&quot;;</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:29:49 +0100</pubDate>
		</item>
		<item>
			<title>Search A Single MYSQL Database Table For a Specific String</title>
			<link>http://www.bohemiawebsites.com/Search-A-Single-MYSQL-Database-Table-For-a-Specific-String.html</link>
			<description>&lt;br/&gt;Search A Single MYSQL Database Table For a Specific String&lt;br/&gt;1) Open phpmyadmin&lt;br /&gt;&lt;br/&gt;2) Select Database &amp;gt;Select Table&lt;br /&gt;&lt;br/&gt;3) Select Search&amp;#160; &lt;br /&gt;&lt;br/&gt;4) Insert Words into Desired Text Input Field&lt;br /&gt;&lt;br/&gt;5) Refine Search with phpmyadmin operator LIKE or %like%&lt;br /&gt;&lt;br/&gt;6) Select Go</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:19:01 +0100</pubDate>
		</item>
		<item>
			<title>Search All MYSQL Database Tables For a Specific String</title>
			<link>http://www.bohemiawebsites.com/Search-All-MYSQL-Database-Tables-For-a-Specific-String.html</link>
			<description>&lt;br/&gt;Search All MYSQL Database Tables For a Word or Specific String&lt;br/&gt;1) Open phpmyadmin&lt;br /&gt;&lt;br/&gt;2) Select Database&lt;br /&gt;&lt;br/&gt;3) Select Search &lt;br /&gt;&lt;br/&gt;4) Insert Words into Text Input&lt;br /&gt;&lt;br/&gt;5) Select Go&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160; </description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:15:37 +0100</pubDate>
		</item>
		<item>
			<title>Count Distinct Rows From MYSQL Table</title>
			<link>http://www.bohemiawebsites.com/Count-Distinct-Rows-From-MYSQL-Table.html</link>
			<description>&lt;br/&gt;Count Distinct Rows From MYSQL Table&lt;br/&gt;Method A&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;$command= &quot;SELECT count(distinct username) as allusername from tablename &quot;;&lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; $result = mysql_query($command, $db);&lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; if ($result &amp;amp;&amp;amp; mysql_num_rows($result) &amp;gt; 0) {&lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160; while ($row = my [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Thu, 02 Feb 2012 15:05:30 +0100</pubDate>
		</item>
		<item>
			<title>MYSQL NUM ROWS To Count Rows</title>
			<link>http://www.bohemiawebsites.com/MYSQL-NUM-ROWS-To-Count-Rows.html</link>
			<description>&lt;br/&gt;MYSQL NUM ROWS&lt;br/&gt;Counting Rows with mysql_num_rows function can provide useful pieces of data. The following example demostrates how to gather gather distinct first names in a table sorted by date. &lt;br /&gt;&lt;br/&gt;$names = &quot;select distinct firstname from table_sort WHERE date&amp;lt;='2012-01-27' &quot;; &lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160; $result= mysql_query($names, $db);&lt;br /&gt;&lt;br/&gt;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160; $name_count = mysql_num_rows($result);&lt;br /&gt; [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Tue, 31 Jan 2012 04:31:14 +0100</pubDate>
		</item>
		<item>
			<title>Selecting Entries With Blank Column in MYSQL</title>
			<link>http://www.bohemiawebsites.com/Selecting-Entries-With-Blank-Column-in-MYSQL.html</link>
			<description>&lt;br/&gt;Selecting Entries With Blank Columns in MYSQL&lt;br/&gt;Objective: Select all rows in a table for which there are blank values. You may want to see the values before you delete all the entries with a specified blank column.&lt;br/&gt;To select entries with an empty column,&lt;br /&gt;&lt;br/&gt;1) SELECT * FROM tablename WHERE column_name='';</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Tue, 31 Jan 2012 04:08:05 +0100</pubDate>
		</item>
		<item>
			<title>Update Passwords Wth MYSQL</title>
			<link>http://www.bohemiawebsites.com/Update-Passwords-Wth-MYSQL.html</link>
			<description>&lt;br/&gt;Update MYSQL Passwords&lt;br/&gt;UPDATE PASSWORDS WITH MYSQL&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Using mysql password function&lt;br /&gt;&lt;br/&gt;update tablename&amp;#160; set password=password('mypass') where id=9;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Update MD5 Passwords&lt;br /&gt;&lt;br/&gt;update tablename&amp;#160; set password=md5('mypass') where id=9;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Update sha1 Passwords&lt;br /&gt;&lt;br/&gt;update tablename&amp;#160; set password=sha1('mypass') where id=9;</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 29 Jan 2012 17:38:00 +0100</pubDate>
		</item>
		<item>
			<title>How To Install Bohemian CMS</title>
			<link>http://www.bohemiawebsites.com/How-To-Install-Bohemian-CMS.html</link>
			<description>&lt;br/&gt;Installing Bohemian CMS&lt;br/&gt;To load Bohemian CMS into a subfolder on a website,&lt;br /&gt;&lt;br/&gt;1)Upload folder to the desired location (i.e. example.com/test)&lt;br /&gt;&lt;br/&gt;2) create database &lt;br /&gt;&lt;br/&gt;3) Import data to database&lt;br /&gt;&lt;br/&gt;4) Change database connection in the files public.php and utilities.php&lt;br /&gt;&lt;br/&gt;5) If you use your main domain (i.e. example.com), you can login, create, edit, delete pages immediately!&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Otherwise, for subfolders please follow the next set of instructions!&lt;br /&gt;&lt;br/&gt;&lt;br / [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 29 Jan 2012 16:58:23 +0100</pubDate>
		</item>
		<item>
			<title>Using Distinct in MYSQL Query For Output</title>
			<link>http://www.bohemiawebsites.com/Using-Distinct-in-MYSQL-Query-For-Output.html</link>
			<description>&lt;br/&gt;Using Distinct For Output&lt;br/&gt;Using distince in a query will output distince values for a chosen query.&lt;br /&gt;&lt;br/&gt;For example, look at the following query:&lt;br /&gt;&lt;br/&gt;&quot;SELECT DISTINCT name from tablename;&quot;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;If there are two exact names in the names column, the query will output the second name. Who cares, right? But what of the query wanted distinct name and email like the query below:&lt;br /&gt;&lt;br/&gt;&quot;SELECT DISTINCT name, email from tablename;&quot;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;The result will retrieve rows with di [...]</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 29 Jan 2012 05:26:44 +0100</pubDate>
		</item>
		<item>
			<title>Replace String in PHP</title>
			<link>http://www.bohemiawebsites.com/Replace-String-in-PHP.html</link>
			<description>&lt;br/&gt;Replace String in PHP With str_replace Function&lt;br/&gt;Replacing Parts of String With str_replace Function&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;$string = &quot;I like to eat.&quot;;&lt;br /&gt;&lt;br/&gt;echo $string; //&lt;br /&gt;&lt;br/&gt;Output is:&lt;br /&gt;&lt;br/&gt;I like to eat&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;$string = str_replace(&quot;eat&quot;,&quot;drink juice&quot;, $string);&lt;br /&gt;&lt;br/&gt;echo $string;&lt;br /&gt;&lt;br/&gt;New output is:&lt;br /&gt;&lt;br/&gt;I like to drink juice.</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 29 Jan 2012 05:22:53 +0100</pubDate>
		</item>
		<item>
			<title>Delete Rows From MYSQL Table</title>
			<link>http://www.bohemiawebsites.com/Delete-Rows-FRom-MYSQL-Table.html</link>
			<description>&lt;br/&gt;Delete Rows From MYSQL Table&lt;br/&gt;Using PHPMYADMIN&lt;br /&gt;&lt;br/&gt;1) Select desired database. &lt;br /&gt;&lt;br/&gt;2) Open SQL Tab in PHPMYADMIN&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;Using MYSQL Console&lt;br /&gt;&lt;br/&gt;1) Open MYSQL Console (mysql&amp;gt;)&lt;br /&gt;&lt;br/&gt;2) Type command:&lt;br /&gt;&lt;br/&gt;delete FROM `test' where id &amp;gt;'0';</description>
			<author>kent@templatesjoomla.ca</author>
			<pubDate>Sun, 29 Jan 2012 05:03:39 +0100</pubDate>
		</item>
	</channel>
</rss>
