<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development - Web Development Tutorial for Developer&#039;s, Asp.net Tutorial, PHP Development, Wordpress Integration</title>
	<atom:link href="http://www.solutions4ever.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solutions4ever.net</link>
	<description>Web Development Solutions Provider</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:17:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>url rewriting for seo friendly URL, Convert .php to .html</title>
		<link>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/</link>
		<comments>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 12:13:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=197</guid>
		<description><![CDATA[<p>For rewriting the URL, you should create a .htaccess file in the root folder of your web directory. And have to put the following codes as your requirement.

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [nc]

The following example will rewrite the test.php to test.html i.e when a URL like http://localhost/test.htm is called in  ... <a href="http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>For rewriting the URL, you should create a .htaccess file in the root folder of your web directory. And have to put the following codes as your requirement.<br />
<br/><br />
<span style="color: #800000;">Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^(.*)\.htm$ $1.php [nc]</span><br />
<br/><br />
The following example will rewrite the test.php to test.html i.e when a URL like http://localhost/test.htm is called in address bar it calls the file test.php. As you can see the regular expression in first part of the RewriteRule command and $1 represents the first regular expression of the part of the RewriteRule and [nc] means not case sensitive.<br />
<br/><br />
<span style="color: #800000;">Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^item-([0-9]+)\.html$ item.php?id=$1</span><br />
<br/><br />
The following example will rewrite the item.php?id=5 to item-5.html i.e when a URL like http://localhost/product-5.html calls item<span style="color: #993366;">.php?id=5</span> automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/url-rewriting-for-seo-friendly-url-convert-php-to-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Transact-SQL: Renaming a Column</title>
		<link>http://www.solutions4ever.net/2010/07/transact-sql-renaming-a-column/</link>
		<comments>http://www.solutions4ever.net/2010/07/transact-sql-renaming-a-column/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:50:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/2010/07/transact-sql-renaming-a-column/</guid>
		<description><![CDATA[<p>To rename a column, first open an empty query window. In a query window, execute sp_rename using the following formula:</p>
sp_rename 'TableName.ColumnName', 'NewColumnName', 'COLUMN'
<p>The sp_rename factor and the &#8216;COLUMN&#8217; string are required. The TableName factor is the name of the table that the column belongs to. The ColumnName is the current  ... <a href="http://www.solutions4ever.net/2010/07/transact-sql-renaming-a-column/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>To rename a column, first open an empty query window. In a query window, execute <strong>sp_rename</strong> using the following formula:</p>
<pre><span style="color: #ff0000;">sp_rename</span> '<em>TableName</em>.<em>ColumnName</em>', '<em>NewColumnName</em>', <span style="color: #ff0000;">'COLUMN'</span></pre>
<p>The <strong>sp_rename</strong> factor and the <strong>&#8216;COLUMN&#8217;</strong> string are required. The <em>TableName</em> factor is the name of the table that the column belongs to. The <em>ColumnName</em> is the current name of the column. The <em>NewColumnName</em> is the desired name you want to give to the column.</p>
<p>Here is an example:</p>
<pre>sp_rename 'StaffMembers.FullName', 'EmployeeName', 'COLUMN'
GO</pre>
<p>When this code is executed, the interpreter will look for a column named FullName in the StaffMembers table of the current or selected <span style="color: #0000ff;">database</span>. If it finds that column in the table, then it renames it EmployeeName.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/transact-sql-renaming-a-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transact-SQL: Deleting a Column</title>
		<link>http://www.solutions4ever.net/2010/07/transact-sql-deleting-a-column/</link>
		<comments>http://www.solutions4ever.net/2010/07/transact-sql-deleting-a-column/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:48:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=194</guid>
		<description><![CDATA[<p>To delete a column using code, first open or access an empty query window, and use the following syntax:</p>
ALTER TABLE TableName
DROP COLUMN ColumnName
<p>On the right side of the ALTER TABLE expression, type the name of the table. On the right side of the DROP COLUMN expression, enter the name of  ... <a href="http://www.solutions4ever.net/2010/07/transact-sql-deleting-a-column/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>To delete a column using code, first open or access an empty query window, and use the following syntax:</p>
<pre>ALTER TABLE <em>TableName</em>
DROP COLUMN <em>ColumnName</em></pre>
<p>On the right side of the <strong>ALTER TABLE</strong> expression, type the name of the table. On the right side of the <strong>DROP COLUMN</strong> expression, enter the name of the undesired column. Here is an example:</p>
<pre>ALTER TABLE Members
DROP COLUMN CurrentResidence;
GO</pre>
<p>When this code is executed, the interpreter will look for a column named CurrentResidence in a table named Members of the current or selected database. If it finds that column, it will remove it from the table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/transact-sql-deleting-a-column/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An Identity Column</title>
		<link>http://www.solutions4ever.net/2010/07/an-identity-column/</link>
		<comments>http://www.solutions4ever.net/2010/07/an-identity-column/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:45:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=192</guid>
		<description><![CDATA[<p>An identity column is one whose value is automatically created by the database engine when a new record is added. This makes sure that each record has a unique value for that field.</p>
<p>To create an identity column in Transact-SQL, after the name and data type of the column, type identity  ... <a href="http://www.solutions4ever.net/2010/07/an-identity-column/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>An identity column is one whose value is automatically created by the database engine when a new record is added. This makes sure that each record has a unique value for that field.</p>
<p>To create an identity column in Transact-SQL, after the name and data type of the column, type <strong>identity</strong> followed by parentheses. Between the parentheses, enter the seed value, followed by a comma, followed by the increment value. Here is an example:</p>
<pre>CREATE TABLE Store(
    ItemID int <span style="color: #ff0000;">IDENTITY(1, 1)</span> NOT NULL,
    Category nvarchar(50),
    ItemName nvarchar(100) NOT NULL,
    Size nvarchar(20),
    UnitPrice money);
GO</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/an-identity-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transact-SQL: Adding a Column to a Table</title>
		<link>http://www.solutions4ever.net/2010/07/transact-sql-adding-a-column-to-a-table/</link>
		<comments>http://www.solutions4ever.net/2010/07/transact-sql-adding-a-column-to-a-table/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:41:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=190</guid>
		<description><![CDATA[<p> </p>
<p>To add a new column to a table, follow this syntax:</p>
ALTER TABLE TableName
ADD ColumnName Properties
<p>Here is an example:</p>
ALTER TABLE Members
ADD Address varchar(100) NULL
GO
<p>When above code is executed, a new column named Address, of type varchar, with a limit of 100 characters, and that allows empty entries, would be added to the  ... <a href="http://www.solutions4ever.net/2010/07/transact-sql-adding-a-column-to-a-table/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>To add a new column to a table, follow this syntax:</p>
<pre>ALTER TABLE <em>TableName</em>
ADD <em>ColumnName Properties</em></pre>
<p>Here is an example:</p>
<pre>ALTER TABLE Members
ADD Address varchar(100) NULL
GO</pre>
<p>When above code is executed, a new column named Address, of type <strong>varchar</strong>, with a limit of 100 characters, and that allows empty entries, would be added to the table named Members.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/07/transact-sql-adding-a-column-to-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Expressions/Examples</title>
		<link>http://www.solutions4ever.net/2010/06/sql-expressionsexamples/</link>
		<comments>http://www.solutions4ever.net/2010/06/sql-expressionsexamples/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 08:01:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=187</guid>
		<description><![CDATA[Creating a Database
<p>To create a database in SQL, use the following syntax:</p>
CREATE DATABASE DatabaseName
<p>Here is an example:</p>
CREATE DATABASE BethesdaCarRental;
Deleting a Database
<p>To delete a database, you use the DROP DATABASE expression followed by the name of the database. The formula used is:</p>
DROP DATABASE DatabaseName;
<p>Here is an example:</p>
DROP DATABASE RealEstate1;
GO

Renaming a Database

<p>To  ... <a href="http://www.solutions4ever.net/2010/06/sql-expressionsexamples/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<h2><strong>Creating a Database</strong></h2>
<p>To create a database in SQL, use the following syntax:</p>
<pre>CREATE DATABASE <em>DatabaseName</em></pre>
<p>Here is an example:</p>
<pre>CREATE DATABASE BethesdaCarRental;</pre>
<h2><strong>Deleting a Database</strong></h2>
<p>To delete a database, you use the <strong>DROP DATABASE</strong> expression followed by the name of the database. The formula used is:</p>
<pre>DROP DATABASE <em>DatabaseName;</em></pre>
<p>Here is an example:</p>
<pre>DROP DATABASE RealEstate1;</pre>
<pre>GO<strong>
</strong></pre>
<h2><strong>Renaming a Database<br />
</strong></h2>
<p>To change the name of a database  , Transact-SQL provides <strong>sp_renamedb</strong>. The formula used would be:</p>
<p>EXEC sp_renamedb &#8216;<em>ExistingName</em>&#8216;, &#8216;<em>NewName&#8217;</em></p>
<p>The <strong>EXEC sp_renamedb</strong> expression is required.</p>
<p>The <em>ExistingName</em> factor is the name of the database that you want to rename.</p>
<p>The <em>NewName</em> factor is the name you want the database to have after renaming it.</p>
<p>Here is an example of renaming a database:</p>
<pre>EXEC sp_renamedb 'RentalCars', 'BethesdaCarRental</pre>
<pre>GO</pre>
<h2><strong>Creating a Table</strong></h2>
<p>To create a table, you can follow this syntax:</p>
<pre>CREATE TABLE Country(<em>Column1</em>, <em>Column2</em>, <em>Column3</em>)</pre>
<p>or:</p>
<pre>CREATE TABLE Country(</pre>
<pre><em>Column1</em>,</pre>
<pre><em>Column2</em>,</pre>
<pre><em>Column3</em>);</pre>
<p>Each column is created as:</p>
<pre><em>ColumnName</em> <em>DataType</em> <em>Options</em></pre>
<p>Here is an example:</p>
<pre>CREATE TABLE Customers (</pre>
<pre>               DrvLicNbr nvarchar(32),</pre>
<pre>               DateIssued DATE,</pre>
<pre>               DateExpired date,</pre>
<pre>               FullName nvarchar(50),</pre>
<pre>               Address NVARCHAR(120),</pre>
<pre>               City NvarChar(40),</pre>
<pre>               State NVarChar(50),</pre>
<pre>               PostalCode nvarchar(20),</pre>
<pre>               HomePhone nvarchar(20),</pre>
<pre>               OrganDonor BIT);</pre>
<pre>GO</pre>
<p><strong> </strong></p>
<h2><strong>Deleting a Table</strong></h2>
<p>To delete a table using SQL, use the following syntax:</p>
<pre>DROP TABLE <em>TableName</em></pre>
<p>The <strong>DROP TABLE</strong> expression is required and it is followed by the name of the undesired table. Here is an example:</p>
<pre>DROP TABLE Students;</pre>
<pre>GO</pre>
<h2><strong>Renaming a Table</strong></h2>
<p>To rename a table using code, execute the <strong>sp_rename</strong> stored procedure using the following syntax:</p>
<pre>sp_rename <em>ExistingTableName</em>, <em>TableNewName</em>;</pre>
<p>Here is an example:</p>
<pre>sp_rename 'StaffMembers', 'Employees';</pre>
<pre>GO</pre>
<h2><strong>Creating a View</strong></h2>
<p>To programmatically create a view, you use the following SQL syntax:</p>
<pre>CREATE VIEW <em>ViewName</em></pre>
<pre>AS</pre>
<pre>SELECT <em>Statement</em></pre>
<p><strong> </strong></p>
<p><strong>Example:</strong></p>
<p><strong> </strong></p>
<pre>CREATE VIEW dbo.ListOfMen</pre>
<pre>AS</pre>
<pre>SELECT dbo.Genders.Gender,</pre>
<pre>       dbo.Persons.FirstName, dbo.Persons.LastName</pre>
<pre>FROM   dbo.Genders INNER JOIN dbo.Persons</pre>
<pre>ON     dbo.Genders.GenderID = dbo.Persons.GenderID</pre>
<pre>WHERE  (dbo.Genders.Gender = N'Male');</pre>
<pre>GO</pre>
<p><strong> </strong></p>
<h2><strong>Modifying a View</strong></h2>
<p><strong> </strong></p>
<pre>ALTER VIEW <em>ViewName</em></pre>
<pre>AS</pre>
<pre>SELECT <em>Statement</em></pre>
<pre><strong>Example:
</strong></pre>
<pre>ALTER VIEW dbo.ListOfMen</pre>
<pre>AS</pre>
<pre>SELECT dbo.Persons.FirstName, dbo.Persons.LastName</pre>
<pre>FROM   dbo.Genders INNER JOIN dbo.Persons</pre>
<pre>ON     dbo.Genders.GenderID = dbo.Persons.GenderID</pre>
<pre>WHERE  (dbo.Genders.Gender = N'Male');</pre>
<h2><strong>Deleting a View</strong></h2>
<pre>DROP VIEW <em>ViewName</em></pre>
<pre><strong>Example:</strong></pre>
<pre>DROP VIEW dbo.ListOfMen</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/06/sql-expressionsexamples/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make PNG transparency work in Internet Explorer</title>
		<link>http://www.solutions4ever.net/2010/05/make-png-transparency-work-in-internet-explorer/</link>
		<comments>http://www.solutions4ever.net/2010/05/make-png-transparency-work-in-internet-explorer/#comments</comments>
		<pubDate>Fri, 28 May 2010 10:51:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=183</guid>
		<description><![CDATA[
<p>Create a container to store your image. In this case I use a &#60;div&#62;.
Create your &#60;div&#62; inside your &#60;body&#62;, just like this.</p>
<p>&#60;body&#62; &#60;div&#62;&#60;/div&#62; &#60;/body&#62;</p>
<p>Next, create a &#60;style&#62; if you dont have one. Make sure they are between your &#60;head&#62; &#60;/head&#62;. Put the following css inside.</p>
<p>&#60;style&#62;
body {background-color:#000}
div.flower {background:url(flower-transparent.png) no-repeat; height:100px; width:100px}
&#60;/style&#62;</p>
<p>The  ... <a href="http://www.solutions4ever.net/2010/05/make-png-transparency-work-in-internet-explorer/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<div id="TixyyLink">
<p>Create a container to store your image. In this case I use a &lt;div&gt;.<br />
Create your &lt;div&gt; inside your &lt;body&gt;, just like this.</p>
<p>&lt;body&gt; &lt;div&gt;&lt;/div&gt; &lt;/body&gt;</p>
<p>Next, create a &lt;style&gt; if you dont have one. Make sure they are between your &lt;head&gt; &lt;/head&gt;. Put the following css inside.</p>
<p>&lt;style&gt;<br />
body {background-color:#000}<br />
div.flower {background:url(flower-transparent.png) no-repeat; height:100px; width:100px}<br />
&lt;/style&gt;</p>
<p>The CSS codes above displays your PNG image in a &lt;div&gt;. Works fine for Mozilla Firefox, but not for Internet Explorer. To get it working cross browser, create another set of css just for Internet Explorer right below your &lt;style&gt; &lt;/style&gt;. Insert the following codes.</p>
<p>&lt;!–[if gte IE 5]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
div.flower {<br />
background:none;<br />
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’flower.png’ ,sizingMethod=’crop’);<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]–&gt;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/05/make-png-transparency-work-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send HTML formatted mail in php</title>
		<link>http://www.solutions4ever.net/2010/04/send-html-formate-mail-in-php/</link>
		<comments>http://www.solutions4ever.net/2010/04/send-html-formate-mail-in-php/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 04:35:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=166</guid>
		<description><![CDATA[<p>&#60; ? php
//define the receiver of the email
$to = &#8216;youremail@testmail.com&#8217;;
//define the subject of the email
$subject = &#8216;Test HTML email&#8217;;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(&#8216;r&#8217;, time()));
//define the headers we want passed. Note that they are separated with  ... <a href="http://www.solutions4ever.net/2010/04/send-html-formate-mail-in-php/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>&lt; ? php<br />
//define the receiver of the email<br />
$to = &#8216;youremail@testmail.com&#8217;;<br />
//define the subject of the email<br />
$subject = &#8216;Test HTML email&#8217;;<br />
//create a boundary string. It must be unique<br />
//so we use the MD5 algorithm to generate a random hash<br />
$random_hash = md5(date(&#8216;r&#8217;, time()));<br />
//define the headers we want passed. Note that they are separated with \r\n<br />
$headers = &#8220;From: webmaster@testmail.com\r\nReply-To: webmaster@testmail.com&#8221;;<br />
//add boundary string and mime type specification<br />
$headers .= &#8220;\r\nContent-Type: multipart/alternative; boundary=\&#8221;PHP-alt-&#8221;.$random_hash.&#8221;\&#8221;";<br />
//define the body of the message.<br />
ob_start(); //Turn on output buffering<br />
? &gt;</p>
<p>&#8211;PHP-alt-&lt; ? php echo $random_hash; ? &gt;<br />
Content-Type: text/plain; charset=&#8221;iso-8859-1&#8243;<br />
Content-Transfer-Encoding: 7bit</p>
<p>Hello World!!!<br />
This is simple text email message.</p>
<p>&#8211;PHP-alt-&lt; ? php echo $random_hash; ? &gt;<br />
Content-Type: text/html; charset=&#8221;iso-8859-1&#8243;<br />
Content-Transfer-Encoding: 7bit</p>
<p>&lt;h2&gt;Hello World!&lt;/h2&gt;<br />
&lt;p&gt;This is something with &lt;b&gt;HTML&lt;/b&gt; formatting.&lt;/p&gt;</p>
<p>&#8211;PHP-alt-&lt; ? php echo $random_hash; ? &gt;&#8211;<br />
&lt; ?<br />
//copy current buffer contents into $message variable and delete current output buffer<br />
$message = ob_get_clean();<br />
//send the email<br />
$mail_sent = @mail( $to, $subject, $message, $headers );<br />
//if the message is sent successfully print &#8220;Mail sent&#8221;. Otherwise print &#8220;Mail failed&#8221;<br />
echo $mail_sent ? &#8220;Mail sent&#8221; : &#8220;Mail failed&#8221;;<br />
? &gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/04/send-html-formate-mail-in-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Declaring string arrays</title>
		<link>http://www.solutions4ever.net/2010/03/declaring-string-arrays/</link>
		<comments>http://www.solutions4ever.net/2010/03/declaring-string-arrays/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 06:16:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=161</guid>
		<description><![CDATA[<p>First, here we observe that there are some ways to declare and instantiate a string[] array local variable. They are all equivalent in the compiled code [see note], so choose the one you think is clearest to read.</p>
~~~ Program that initializes string arrays (C#) ~~~
 
class Program
{
    static void Main()
    {
  //  ... <a href="http://www.solutions4ever.net/2010/03/declaring-string-arrays/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>First, here we observe that there are some ways to declare and instantiate a string[] array local variable. They are all equivalent in the compiled code [see note], so choose the one you think is clearest to read.</p>
<pre><strong>~~~ Program that initializes string arrays (C#) ~~~</strong></pre>
<pre> </pre>
<pre>class Program</pre>
<pre>{</pre>
<pre>    static void Main()</pre>
<pre>    {</pre>
<pre>  // String arrays with 3 elements:</pre>
<pre>string[] <strong>arr1</strong> = new string[] { "one", "two", "three" }; // A</pre>
<pre>string[] <strong>arr2</strong> = { "one", "two", "three" };              // B</pre>
<pre>string<strong> arr3</strong> = new string[] { "one", "two", "three" };  // C</pre>
<pre> </pre>
<pre> string[] <strong>arr4</strong> = new string[3]; // D</pre>
<pre>        arr4[0] = "one";</pre>
<pre>        arr4[1] = "two";</pre>
<pre>        arr4[2] = "three";</pre>
<pre>    }</pre>
<pre>}</pre>
<p><strong>Description.</strong> The above Main function shows four string[] arrays, each equal to the compiler. The biggest difference is that the first three arrays are declared on one line, while the fourth array is assigned in separate statements. The fourth array would permit you to test each value or insert logic as you assign it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/03/declaring-string-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count number of words in a MySQL column</title>
		<link>http://www.solutions4ever.net/2010/03/count-number-of-words-in-a-mysql-column/</link>
		<comments>http://www.solutions4ever.net/2010/03/count-number-of-words-in-a-mysql-column/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 08:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.solutions4ever.net/?p=157</guid>
		<description><![CDATA[<p>This is a general requirement to count number of words in a column of a MySQL database table. But MySQL does not have any built in function to count number of words as it generally has for number of purposes.</p>
<p>But you can do it with a simple trick e.g. you  ... <a href="http://www.solutions4ever.net/2010/03/count-number-of-words-in-a-mysql-column/" class="expert-read-more" >Read More</a>]]></description>
			<content:encoded><![CDATA[<p>This is a general requirement to count number of words in a column of a MySQL database table. But MySQL does not have any built in function to count number of words as it generally has for number of purposes.</p>
<p>But you can do it with a simple trick e.g. you have a column name and want to count number of words in it. This query will return number of words separated with space in a column</p>
<p><span style="color: #800000;">SELECT SUM( LENGTH(name) &#8211; LENGTH(REPLACE(name, &#8216; &#8216;, &#8221;))+1) FROM table</span></p>
<p><span style="color: #000000;">If you want to count number of words separated by some other string for example comma (,) or semicolon (;), simply replace <em>space</em> with your required character.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solutions4ever.net/2010/03/count-number-of-words-in-a-mysql-column/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
