<?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>Solution Summit's General Discussion Blog</title>
	<atom:link href="http://www.solsummit.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.solsummit.com/blog</link>
	<description>Blog for discussing programming, designing and web templates related issues</description>
	<lastBuildDate>Sun, 17 Apr 2011 17:17:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solution to Visual Studio ASP Dot net 2008 Ver 3.5 Design view rendering issue</title>
		<link>http://www.solsummit.com/blog/archives/74</link>
		<comments>http://www.solsummit.com/blog/archives/74#comments</comments>
		<pubDate>Sun, 09 Jan 2011 17:08:38 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[ASPX design view problem]]></category>
		<category><![CDATA[Design view does not appear]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[VS 2008]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=74</guid>
		<description><![CDATA[A few days back, i had been suffering from an issue that when i clicked on any .aspx file in Dot net framework that did not get appear while the page seemed to be doing nothing except page halt and you had to have stop that and close that page. I browsed the web and [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back, i had been suffering from an issue that when i clicked on any .aspx file in Dot net framework that did not get appear while the page seemed to be doing nothing except page halt and you had to have stop that and close that page. I browsed the web and tried to find it on google but all in vain. All the solution posted on different forums very just the solution but actually was doing nothing and were not addressing the real issue. By fortune, i saw a URL by changing my search keywords, all the other links were just rubbish but this appealed me. I open that and tried the solution written in that. Wow, great, it worked.</p>
<p>Then i decided to share that knowledge with Community.</p>
<p><strong>Solution to Problem:</strong></p>
<p>Check your installed programs (Go to Control Panel &#8211; Add/Remove Windows Components) and verify that whether the &#8220;Microsoft Visual Studio Web Authoring Component&#8221; and &#8220;Microsoft Web Designer tools&#8221; are installed on your computer. If you see those are not there, do the following:</p>
<p><strong>Steps:</strong></p>
<p>1. Insert the DVD you have to yours DVD player.</p>
<p>2. Go to this location \WCU\WebDesignerCore\</p>
<p>3. You will see an .exe with the following name:</p>
<p>&#8220;WebDesignerCore.exe&#8221;</p>
<p>4. Click on this exe and run it.</p>
<p><strong>NOTE:</strong> This exe doesn&#8217;t have a User Interface to guide you, so you will have to watch the Task Manager to know when this exe completes its installation.</p>
<p><strong>References:</strong></p>
<p>1. http://blogs.iis.net/rakkimk/archive/2009/03/09/problems-with-rendering-the-quot-design-quot-view-for-a-simple-asp-net-website-from-visual-studio-2008.aspx?CommentPosted=true#commentmessage<br />
2. http://forums.asp.net/t/1167590.aspx</p>
<p>Thanks</p>
<p>Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/74/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Multi-Select Plug-in</title>
		<link>http://www.solsummit.com/blog/archives/63</link>
		<comments>http://www.solsummit.com/blog/archives/63#comments</comments>
		<pubDate>Mon, 28 Dec 2009 14:51:33 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[IE-7]]></category>
		<category><![CDATA[IE-8]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery Custom MultiSelect Control]]></category>
		<category><![CDATA[MulitiSelect]]></category>
		<category><![CDATA[Multi-Select]]></category>
		<category><![CDATA[Plugin Plug-in]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=63</guid>
		<description><![CDATA[About Jquery Multi-Select Plug-in: This plug-in is aim at providing a custom multi-select box with custom CSS. It has been tested all of the major browsers: IE-7 &#38; 8, Fire Fox 3.5.x and 3.6, Safari 3.0.x, Google Chorme. Requirements It requires Jqueryâ€™s version 1.3.2 or later and in the case you want to use the [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal"><strong><span style="text-decoration: underline;"><span style="font-size: 16pt; font-family: &quot;Palatino Linotype&quot;;">About Jquery Multi-Select Plug-in:</span></span></strong></p>
<p class="MsoNormal">This plug-in is aim at providing a custom multi-select box with custom CSS. It has been tested all of the major browsers: IE-7 &amp; 8, Fire Fox 3.5.x and 3.6, Safari 3.0.x, Google Chorme.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong><span style="text-decoration: underline;"><span style="font-size: 16pt; font-family: &quot;Palatino Linotype&quot;;">Requirements</span></span></strong></p>
<p class="MsoNormal">It requires Jqueryâ€™s version 1.3.2 or later and in the case you want to use the custom scroll bar, it requires JScroll Pane. You can download JQuery from <a href="http://docs.jquery.com/Downloading_jQuery">here</a></p>
<p class="MsoNormal">
<p class="MsoNormal"><strong><span style="text-decoration: underline;"><span style="font-size: 16pt; font-family: &quot;Palatino Linotype&quot;;">How to install:</span></span></strong></p>
<p class="MsoNormal">1. Keep the required files to your desired folder</p>
<p class="MsoNormal">2. Include the files to your web-page.</p>
<p class="MsoNormal">3. Set the parameters which you want to change.</p>
<p class="MsoNormal">4. For using JScroll pane, set the â€˜jScrollPaneâ€™ parameter like this</p>
<p class="MsoNormal">jScrollPane <strong>:</strong> <span> </span>&#8216;$(&#8220;.table_scroll&#8221;).jScrollPane({scrollbarWidth: 6, scrollbarMargin:0})&#8217;</p>
<p class="MsoNormal">
<p class="MsoNormal">Note the quotes around the statement. You can change the JScroll pane setting according to your need.</p>
<p class="MsoNormal">
<p class="MsoNormal">5. To initialize:</p>
<p class="MsoNormal"><span> </span>$(function(){</p>
<p class="MsoNormal"><span> </span>$(&#8216;#mulit&#8217;).multiselect({selContainerID : &#8216;selboxID&#8217; });</p>
<p class="MsoNormal"><span> </span><span> </span>});<span> </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Give the selector to select the multi-select box and call to the â€œmultiselectâ€ plug-in. Set the parameter and give the id of the container where the selected values would be shown.</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">Thatâ€™s it.</p>
<p class="MsoNormal"><strong> Version 1.1.0 Release Date March 12, 2010 </strong></p>
<p class="MsoNormal">A new version of JQuery Multi-Select has been launched. In this release some issues related to the Selected values box have been fixed.</p>
<p class="MsoNormal">If is2ShowSelected is set to true and selContainerID is not provided, it was throwing error on IE-7 and Google Chrome.Â  So this issue has been fixed.</p>
<p class="MsoNormal">
<p class="MsoNormal"><a class="wp-caption" title="JQuery Custom  MultiSelect Plug-in Ver 1.1.0" href="http://www.solsummit.com/multi/myJquerypluginv1.1.0.zip" target="_blank">Download  Sample Code and Plug-in Version 1.1.0 here</a></p>
<p class="MsoNormal"><a class="wp-caption" title="JQuery Custom MultiSelect Plug-in" href="http://www.solsummit.com/multi/myJqueryplugin.rar">Download Sample Code and Plug-in here</a></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Thanks</span></p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em><br />
</span></p>
<p class="MsoNormal">
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/63/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Causes of delay in achieving the milestones of the projects taken from Freelance websites</title>
		<link>http://www.solsummit.com/blog/archives/59</link>
		<comments>http://www.solsummit.com/blog/archives/59#comments</comments>
		<pubDate>Sun, 09 Aug 2009 09:17:02 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Web Reviews]]></category>
		<category><![CDATA[Achieving Deadlines]]></category>
		<category><![CDATA[Causes of delay]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[HCI Rules]]></category>
		<category><![CDATA[Milestones]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=59</guid>
		<description><![CDATA[After having worked on different freelance websites and in different companies; I found some issues which become hurdle in accomplishing the targets of any project: 1: Clients which come on freelance websites do not disclose the complete information about their businesses in the initial requirement phases even someone tried his/her level best to elicit the [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal"><span style="font-family: Arial;">After having worked on different freelance websites and in different companies; I found some issues which become hurdle in accomplishing the targets of any project:</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">1: Clients which come on freelance websites do not disclose the complete information about their businesses in the initial requirement phases even someone tried his/her level best to elicit the requirements from them.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">2: Clients deliberately or in-deliberately hide the information which becomes on later stages a menace in attaining the milestones.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">3: Immature processes of the workers or companies who work on freelance websites also become the cause of delay in delivery of projects on time.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">4: Project management issues and Quality assurance teamâ€™s overlooking about errors and bugs in the program, is also another reason of failure.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">5: Absence of HCI and lack of ergonomics rules make it difficult for a developer to focus on his/her work and in return delay occurs.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">6: Very high demands and expectations from the developers and a pressure of unreal deadlines put a huge pressure on developers which in turn appears as an obstacle in hitting targets.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">Human anomalies in doing work and other language related factors must be discussed according to the Software engineering rules and practices before going to start the project.</span></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<p class="MsoNormal"><span style="font-family: Arial;">Real deadlines and mature processes must be implemented in the software houses or in the work place of freelancers.</span></p>
<p class="MsoNormal">
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Thanks</span></p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discrimination of International Community for Pakistan</title>
		<link>http://www.solsummit.com/blog/archives/54</link>
		<comments>http://www.solsummit.com/blog/archives/54#comments</comments>
		<pubDate>Thu, 14 May 2009 18:34:26 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Web Reviews]]></category>
		<category><![CDATA[6th largest population]]></category>
		<category><![CDATA[Discrimination]]></category>
		<category><![CDATA[hotmail]]></category>
		<category><![CDATA[International Community]]></category>
		<category><![CDATA[IT Field]]></category>
		<category><![CDATA[merchant accounts]]></category>
		<category><![CDATA[online banks]]></category>
		<category><![CDATA[Pakistan]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[travel sites]]></category>
		<category><![CDATA[Urdu Language]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=54</guid>
		<description><![CDATA[Now a days, when each and every country is coming closer to one and other using new technologies and mediums, we are seeing that Pakistan is being neglected by most of the international courtiers in many area of the fields especially in the field of IT. Some of the points are listed below: 1: Most [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if !mso]><span class="mceItemObject"   classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></span><br />
<mce:style><!  st1\:*{behavior:url(#ieooui) } --></p>
<p class="MsoNormal"><!--[endif]--> Now a days, when each and every country is coming closer to one and other using new technologies and mediums, we are seeing that Pakistan is being neglected by most of the international courtiers in many area of the fields especially in the field of IT. Some of the points are listed below:</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">1: Most of the internet websites, related to travel, donâ€™t include Pakistan as a destination to be visited.</p>
<p class="MsoNormal">
<p class="MsoNormal">2: Some international payment merchants do not provide services in Pakistan. An example is: Paypal. Many times workers who are providing services in Pakistan have to interact with such clients who tell that they will send payments via paypal, and it becomes a headache for the service providers to receive payments of their provided services.</p>
<p class="MsoNormal">
<p class="MsoNormal">3: Urdu which is the language of 6<sup>th</sup> largest population of the world was being ignored by many international websites including yahoo and hotmail for many years. Now yahoo and hotmail have started some services in Urdu, but still many sites do not contain Urdu in their language boxes. Now, as a 6<sup>th</sup> largest populous nation in the world, Urdu must be at least on every site which audience and services are not geographically bounded to one country.</p>
<p class="MsoNormal">
<p class="MsoNormal">4: It is also very strange that on some freelance websites where a large number of Pakistani people are providing services better than other countries, a prejudiced attitude can been seen when these websites write about the emerging and progressing countries, they include India, Romania etc but Pakistan is ignored. While the reality on the ground is, Pakistani service providers are more capable and intelligent and not lesser than any others in their fields. It seems a blatant effort to overlook the services of industrious Pakistani people. <span> </span>Pakistan must be incorporated in the list while tempting clients to select service providers from progressing countries.</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">The reason which might be behind this ignorance is, current situation prevailing in northern parts of the Pakistan, and one can say that one can not include Pakistan to their travel sites because Pakistan is not a secure country. But if someone has mind on his head, then he can see that that situation has been for few years, before that Pakistan was always a safe place and still it is. So, why was Pakistan ignored at that time? Tourists may come to Pakistan especially Lahore, where they can see many ancient buildings and can find many things which are worthwhile to see. <span> </span>They can go to Kashmir; they can come to see the beauty of vast magnificent deserts, Thal and Cholistan.</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">Besides the current situation, Pakistani economy is still progressing, Pakistani people are alive and providing services, So Pakistan must be treated in a good manner by the international community.</p>
<p class="MsoNormal">
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Thanks</span></p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></span></p>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/54/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problem with URL rewriting using .htaccess based Articles</title>
		<link>http://www.solsummit.com/blog/archives/38</link>
		<comments>http://www.solsummit.com/blog/archives/38#comments</comments>
		<pubDate>Fri, 07 Nov 2008 06:05:07 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Solution Summit Comments Lounge]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache rewrite guide]]></category>
		<category><![CDATA[Mode Rewrite]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[URL Rewrite]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=38</guid>
		<description><![CDATA[Problem with URL rewriting using .htaccess based Articles. This small writing is intended only for the beginners. It is not for the coders who have know-how of .htaccess and are experts or advanced programmers. Url rewriting using .htaccess is very common now-a-days for the programmers who work especially in PHP on linux or unix based [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <strong><span style="font-family: &quot;Trebuchet MS&quot;; color: #333333;">Problem with URL rewriting using .htaccess based Articles.</span></strong></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">This small writing is intended only for the beginners. It is not for the coders who have know-how of .htaccess and are experts or advanced programmers.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Url rewriting using .htaccess is very common now-a-days for the programmers who work especially in PHP on linux or unix based Operating systems with Apache as a web server.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">.htaccess is a Global Configuration file in Apache. It is not only used to make redirection but it is also used for many other tasks like Stop displaying the directories of the site if there is no Index or start up page, changing the start up page to something else etc. I am not going into detail of it as you can find much about on internet. </span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">Visit <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html">Apache rewrite guide</a> for this purpose if you are interested in knowing further about the rewriting.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">The only purpose for this small article was to address the issue with the articles for url rewriting while they are written and published. </span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">They mention in detail about what the rewriting URLs is. They gave examples how to use that but they donâ€™t mention about to change URLs in the code. Coders must write and make URLs according to SEO friendly format and then define a rule for them in .htaccess.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">They just mention this is URL and see how it will be redirected.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">Example: </span></p>
<p class="NormalTrebuchetMS" style="text-indent: 0.5in;"><strong><span style="font-size: 10pt; font-weight: normal; font-family: &quot;Trebuchet MS&quot;;">Rewriting product.php?id=12 to product/ipod-nano/12.html</span></strong></p>
<p class="NormalTrebuchetMS" style="margin-left: 0.5in;"><span style="font-size: 10pt; color: maroon;">RewriteEngine on<br />
RewriteRule ^product/([a-zA-Z0-9_-]+)/([0-9]+)\.html$ product.php?id=$2</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">The author has mentioned about the url and showed that how the url will be redirected seamlessly. Definitely it will come from the Browsers address bar. But he has not mentioned that this kind of URLs will be made in their programming coding.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">Why it is essential, because for the beginners it becomes difficult to understand. So whenever such articles must be written, they must start from making the ground. </span></p>
<p class="NormalTrebuchetMS"><strong><span style="font-size: 10pt;">Conclusion</span></strong></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">A coder must think how the urls will look like before making rules, then he must format the links generated from his code, for instance, make a link for editing the profile of a user according to what he has planned.</span></p>
<p class="NormalTrebuchetMS" style="text-align: center;"><span style="font-size: 10pt;">Example: <a href="http://www.domain.com/profile/Murtaza-2/">http://www.domain.com/profile/Murtaza-2/</a></span></p>
<p class="NormalTrebuchetMS" style="margin-left: 1in; text-indent: 0.5in; text-align: center;"><span style="font-size: 10pt;">Or</span></p>
<p class="NormalTrebuchetMS" style="text-align: center;"><span style="font-size: 10pt;"><span> </span><a href="http://www.domain.com/profile/Murtaza/2/">http://www.domain.com/profile/Murtaza/2/</a></span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;"> </span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">It must be generated through the code.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">Then he can write a rule in .htaccess like this.</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;"> </span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">RewriteEngine on</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">RewriteRule ^profile/</span><span style="font-size: 10pt; color: maroon;">([a-zA-Z]+)</span><span style="font-size: 10pt;">-([0-9]+)/$ <span> </span>acp/users/options/profile.php?name=$1&amp;idPk=$2</span></p>
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;">This â€œacp/users/options/profile.phpâ€ is the directory structure where the profile.php is present. Use your own path.</span></p>
<p class="NormalTrebuchetMS">One more thing to be noticeable that when you write a SEO friendly URL which has some query string, You must enclose your query string portion with Parenthesis &#8216;()&#8217; without single quote. Because it tells the rule that now the sub pattern is going to be started. And it assigns the value to the right hand side&#8217;s variables defined as $1, $2 so on.</p>
<p class="NormalTrebuchetMS">e.g, in the above rule <span style="font-size: 10pt;">this part </span><strong><span style="font-size: 10pt; color: maroon;">([a-zA-Z]+)</span></strong><span style="font-size: 10pt;"> tells the Rule to assign whatsoever is coming at let to right hand side&#8217;s </span><span style="font-size: 10pt;"><strong>$1</strong> and this </span><strong><span style="font-size: 10pt;">([0-9]+)/</span></strong><span style="font-size: 10pt;"><strong>$</strong></span><span style="font-size: 10pt;"> to <strong>$2</strong>. Note down the parenthesis.</span></p>
<p>Thanks</p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></span><span style="font-family: &quot;Trebuchet MS&quot;;"> </span></p>
<p class="NormalTrebuchetMS">
<p class="NormalTrebuchetMS"><span style="font-size: 10pt;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/38/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recommended Font Size for the content&#8217;s text of your website Now-a-days</title>
		<link>http://www.solsummit.com/blog/archives/28</link>
		<comments>http://www.solsummit.com/blog/archives/28#comments</comments>
		<pubDate>Fri, 07 Nov 2008 05:39:25 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[10px]]></category>
		<category><![CDATA[12px]]></category>
		<category><![CDATA[14px]]></category>
		<category><![CDATA[Best Design Practices]]></category>
		<category><![CDATA[Contents Text Size]]></category>
		<category><![CDATA[Font Size]]></category>
		<category><![CDATA[it is difficult to see such small font on them. So it i]]></category>
		<category><![CDATA[Large and High resoltions]]></category>
		<category><![CDATA[most of the users used small resolutions and also small]]></category>
		<category><![CDATA[Small Resolutions]]></category>
		<category><![CDATA[[b]Standard Font Size for the Body text Now-a-days[/b]]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=28</guid>
		<description><![CDATA[Recommended Font Size for the content&#8217;s text of your website Now-a-days It has been seen that now a days many users use high resolutions because as technology is advancing large resolutions are coming into market. Before it, most of the users used small resolutions and also small font sizes were in practice. The size which [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Recommended Font Size for the content&#8217;s text  of your website Now-a-days</strong></p>
<p>It has been seen that now a days many users use high resolutions because as technology is advancing large resolutions are coming into market.<br />
Before it, most of the users used small resolutions and also small font sizes were in practice. The size which were used was between 10px to 12px.<br />
But now the resolutions are high, it is difficult to see such small font on them. So it is suggested to use the large font sizes.<br />
One can use the font size 12px(min) to 16px. It is also a good habit to define the font sizes in &#8216;em&#8217; unit.  Default em is 16px. Mostly every popular browser&#8217;s default font has been set to 16px as every one knows about that.</p>
<p style="text-align: center;">Here is a very good article which mentions about this topic in detail. So read and do happy coding.<br />
<a class="aligncenter" title="New design Practices" href="http://informationarchitects.jp/100e2r/" target="_blank"> http://informationarchitects.jp/100e2r/</a></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <span style="font-family: &quot;Trebuchet MS&quot;;">Thanks</span></p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/28/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Store And Retrieve data to Mysql db which has many to many relation without creating new third table and keeping intact the normalization</title>
		<link>http://www.solsummit.com/blog/archives/14</link>
		<comments>http://www.solsummit.com/blog/archives/14#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:18:30 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Advanced Mysql queries]]></category>
		<category><![CDATA[Eliminate thrid table in many-to-many relationship]]></category>
		<category><![CDATA[Many-to-Many Relation]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[New Idea]]></category>
		<category><![CDATA[REGEXP]]></category>
		<category><![CDATA[simple queries]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=14</guid>
		<description><![CDATA[Store and retrieve data which has â€˜many-to-manyâ€™ relationships with each other without creating a third table This article is intended for website and software developers who have some knowledge about programming and Databases. During development in any computer programming language, we usually come across situations where we have to store data taken from different Medias [...]]]></description>
			<content:encoded><![CDATA[</p>
<p class="MsoNormal" style="text-align: left;"><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">Store and retrieve data which has â€˜many-to-manyâ€™ relationships with each other without creating a third table</span></strong></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">This article is intended for website and software developers who have some knowledge about programming and Databases.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">During development in any computer programming language, we usually come across situations where we have to store data taken from different Medias like web forms, CSV files, RSS Feeds etc.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">There are also different ways to store the data, like storing data to an XML file, storing data to a CSV file and/or storing data to any database.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">Many times software and website developers face a situation in which data has â€˜<strong>many to manyâ€™ relationship</strong> with each other. And for this purpose, they make an extra SQL data table in any Database which they use. This is done just to keep the database normalized.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">To make life easy, letâ€™s take a simple example and see something about normalization step before moving to the actual topic of this article. I am explaining it here just for the developers who have less knowledge about database and development and are at beginning level and also for making the ground for my solution. </span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">Suppose you are working on a project which is related to any restaurant website. A restaurant website mostly has Menus, Recipes/dishes etc. If you explore further, you will see that the Menus can have many recipes/dishes whereas a dish can be served in different menus; Here Menus are Breakfast, Lunch, Dinner, and Supper etc. Dishes can be Bread, Juices etc.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">So you can serve bread in Breakfast, You can serve in Dinner etc. And a menu can have many type of dishes for instance, bread, Fried chicken, Berger etc.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">In the above example, you can see that there is a â€˜many to manyâ€™ relationship between dishes and menus. In order to store data and information for dishes and menus, you will definitely make a data table for <strong>Menus</strong>, a data table for <strong>Dishes. </strong>Now if you try and save the data, you will realize that there is repetition of fields in <strong>Dishes</strong><span> table</span>.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;">
<p class="MsoNormal" style="text-align: left;"><strong><span style="text-decoration: underline;"><span style="font-family: &quot;Trebuchet MS&quot;; color: #333333;">The Problem</span></span></strong></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">Data is not normalized.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">See the below screen shots below for two different tables <strong>tblmenu</strong> and <strong>tbldishes</strong> created in MYSQL Database. Please note that these tables are just for explanatory purposes and do not contain all the necessary data fields.</span></p>
<p class="MsoNormal" style="line-height: 14.4pt;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:"Trebuchet MS"; 	panose-1:2 11 6 3 2 2 2 2 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:647 0 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="line-height: 14.4pt;">
<p class="MsoNormal" style="line-height: 14.4pt; text-align: left;"><strong><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #333333;">tblmenu</span></span></strong></p>
<p style="line-height: 14.4pt;" align="center"><img src="http://www.solsummit.com/images/blog/01/tblmenu.jpg" alt="" width="722" height="169" /></p>
<p><strong><span style="text-decoration: underline;">tbldishes</span></strong></p>
<p style="text-align: center;" align="center"><!--[if gte vml 1]> <![endif]--><img src="http://www.solsummit.com/images/blog/01/tbldishes.jpg" alt="" width="791" height="240" />
</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Suppose there are Two Menu items in <strong>tblmenu</strong> and some dishes in <strong>tbldishes</strong> tables respectively.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Screen shots of both tables with values are given below:</span></p>
<p style="text-align: center;" align="center"><!--[if gte vml 1]> <![endif]--><img src="http://www.solsummit.com/images/blog/01/tblmenu_value.jpg" alt="" width="514" height="170" /></p>
<p style="text-align: center;" align="center"><!--[if gte vml 1]> <![endif]--><img src="http://www.solsummit.com/images/blog/01/tbldishes_value.jpg" alt="" width="604" height="233" /></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">You can see that â€˜Breadâ€™ is served not only in â€˜Breakfast&#8217; but also in â€˜Dinner&#8217; and it is being repeated. Here is the solution:</span></p>
<p><strong><span style="text-decoration: underline;"><span style="font-family: &quot;Trebuchet MS&quot;;">The solution</span></span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">The solution to this problem is to create a <strong>new third intermediate table</strong> as most of the developers do.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">I am not going to create any <strong>new third intermediate table</strong>. Instead I am moving towards another <strong>solution</strong> which will suggest how to solve the above problem without creating a new table and keeping intact the normalization.</span></p>
<p><strong><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">New solution</span></span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Creating a new table will solve the issue of normalization without any problem. But when I used to do that, I always had to know which third table was related to which other two tables in a large database. Also while coding, I would have to store data to that third table and then at query time, I had to make such a query which could fetch the required data from the second table or first table depending upon the third table. It was extra overhead and work which I had to do.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Here is an idea on how this problem can be resolved with just a simple SQL query.</span></p>
<p><strong><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">The Idea</span></span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">I will move forward by again taking the example of restaurant which we are dealing with at the moment. Suppose you have a web page where you have to display some dishes, and you have selected a dish say Bread and you have added it to or attached it with a (or many) Menu like Breakfast or/and Dinner.</span></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Now you need to store that to the db so that it might be available to the user not only for Breakfast but also for dinner.</span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Do Not</span></strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;"> go and create a new table in order to store the selected Dish and Menuâ€™s id.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">To do so, just make a simple change in <strong>tbldishes </strong>by changing the type of Menu id foreign key field to Varchar instead of int.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Now you just need to store or insert the selected menus id(s) separated by Commas into that field. e.g, <strong>1, 3</strong></span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">It means Menu # 1 and Menu # 3 have been selected.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Using this technique, there is no need of making the third table or calculating Binary value of the Ids and then summing the Ids up in order to store to the Db menu foreign key Field. You can see the data in the table is normalized.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Also, there is no need to count Total # of Menus in order to calculate 2 ^ n-1 formula for making # of bits and then doing the bit shifting operations on MySQL side in query.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">The total cost which will come on this action that is concatenating the Menu ids is just constant and minimum, which makes this solution fast and efficient.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Ok this was the answer of <strong>how to store the data.</strong></span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Now the concern is how to retrieve a Recipe/Dish</span></strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;"> which is present in different Menus.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">That is so simple, easy and efficient using the method I am going to tell you now. No need to be worried about shifting correct number of bits and performing bit wise operations etc or making complex SQL queries for retrieving data.</span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">IF YOU WANT TO CHECK ALL THE RECIPES/DISHES WHICH ARE AVAILABLE IN BREAKFAST AND HAD ID EQUAL TO ONE (1) IN DB TABLE, JUST DO THIS</span></strong></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">SELECT dish_Name FROM tbldishes WHERE dish_MenuIdFk <span style="color: #3366ff;">REGEXP </span>&#8217;1&#8242;</span></p>
<p style="text-align: center;" align="center"><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">OR</span></strong></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">SELECT dish_Name FROM tbldishes WHERE dish_MenuIdFk <span style="color: #3366ff;">REGEXP </span>&#8216;[1]&#8216;</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Both will work. You can confirm it by using an example to see the result yourself. No need to manipulate bits or making complex queries.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Again, if you want all the recipes in menu 1 or 4, do the following:</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">SELECT dish_Name FROM tbldishes WHERE dish_MenuIdFk <span style="color: #3366ff;">REGEXP </span>&#8216;[1 | 4]&#8216;</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">And if you want 1 and 4, do like this.</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">SELECT dish_Name FROM tbldishes WHERE dish_MenuIdFk <span style="color: #3366ff;">REGEXP </span>&#8216;[1]&#8216; AND dish_MenuIdFk <span style="color: #3366ff;">REGEXP </span>&#8216;[4]&#8216;</span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">So will it work for digits (ids) greater than 9? </span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">No, it will cause some repetition.</span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">So what is the solution?</span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Let&#8217;s make some modification to improve it. Store the values from your programming code separated by <span style="color: teal;">â€˜!&#8217;</span> or any other character which has no Special meaning in <span style="color: #3366ff;">REGEXP</span>. <span style="color: teal;">â€˜!&#8217;</span> this will work as a boundary of the number or Menu id.</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">I am using &#8216;!&#8217;, so store the values like this</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">!1!!333!!4! So on</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">And retrieve as</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">SELECT *</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">FROM tbldishes</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">WHERE dish_MenuIdFk</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #3366ff;">REGEXP </span><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">&#8216;!1!&#8217;</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">OR dish_MenuIdFk</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;; color: #3366ff;">REGEXP </span><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">&#8216;!33!&#8217;</span></p>
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">LIMIT 0, 30</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">It will work up to any number of digits within a number.</span></p>
<p><strong><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">Conclusion:</span></strong></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">In my example, only the operation of concatenation of the Ids is being performed before storing them to the DB. In the routine way in which we make a third table, you need to use some loop in order to store multiple ids within the table. This will definitely take much time than just performing a simple concatenation operation.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">One can also enhance and optimize the query by indexing the columns which one think will be used for search filters. In my example you can put the â€œIndexâ€ on â€œdish_MenuIdFkâ€.</span></p>
<p><span style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;">I would appreciate the addition or subtraction and any comment on it in order to make it better.</span></p>
<p><strong>Note:</strong> The command which has been used here in the solution with in sql query is â€˜REGEXP&#8217;. This is a MYSQL command. You will have to see the alternative command in your database manual if you are not using the MYSQL database.</p>
<p>Thanks</p>
<p><span style="font-family: &quot;Trebuchet MS&quot;;">Syed Murtaza Hussain Kazmi<br />
<strong>PHP and Dotnet 1.1 Website and Software Engineer</strong><br />
<em>Efficiency in code is good but that must be reasonable.</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/14/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Solution Summit Mania</title>
		<link>http://www.solsummit.com/blog/archives/3</link>
		<comments>http://www.solsummit.com/blog/archives/3#comments</comments>
		<pubDate>Wed, 10 Sep 2008 09:38:10 +0000</pubDate>
		<dc:creator>Syed Murtaza Hussain Kazmi</dc:creator>
				<category><![CDATA[Solution Summit Comments Lounge]]></category>
		<category><![CDATA[Logos]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[Solution Summit]]></category>
		<category><![CDATA[Web Designs]]></category>
		<category><![CDATA[Web Templates]]></category>

		<guid isPermaLink="false">http://www.solsummit.com/blog/?p=3</guid>
		<description><![CDATA[I welcome all of you on Solution Summit Blog. Kindly feel free to post about Solution Summit. Leave your comments and suggestions in order to make this site and our services the Best. We will welcome all of your suggestions and we shall try to make the adjustments and make better our services if required [...]]]></description>
			<content:encoded><![CDATA[<p>I welcome all of you on Solution Summit Blog. Kindly feel free to post about Solution Summit. Leave your comments and suggestions in order to make this site and our services the Best. We will welcome all of your suggestions and we shall try to make the adjustments and make better our services if required and essential in the light of your opinions.</p>
<p>Please click on the above &#8220;Solution Summit Mania&#8221; link for leaving the feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solsummit.com/blog/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

