<?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>JT Bhatt - A Developer&#039;s Blog</title>
	<atom:link href="http://blog.jitendrabhatt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jitendrabhatt.com</link>
	<description>A Developer&#039;s Blog</description>
	<lastBuildDate>Fri, 04 May 2012 04:25:56 +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>MCK Basketball 5-2-2012</title>
		<link>http://blog.jitendrabhatt.com/2012/05/mck-basketball-5-2-2012/</link>
		<comments>http://blog.jitendrabhatt.com/2012/05/mck-basketball-5-2-2012/#comments</comments>
		<pubDate>Fri, 04 May 2012 04:22:16 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=144</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<style type="text/css">
.avs_player .title {
	font-size:18px;
	font-weight:bold;
	margin:5px 0px;
	line-height:14px;
}
.avs_player .category {
	margin:3px 0px;
	font-size:12px;
	float:left;
}
.avs_player .hits {
	margin:3px 0px;
	font-size:12px;
	float:right;
}
.avs_player .description {
	margin:7px 0px;
	padding:5px;
	border:1px solid #E7E7E7;
}
</style>
<div class="avs_player" style="width:600px;">
<div class="title">MCK Basketball 05022012</div>
<div class="category"><strong>Category : </strong>MCK Videos</div>
<div class="hits"><strong>Hits : </strong>286</div>
<div style="clear:both;"></div>
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="450"><param name="movie" value="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29856" /><param name="wmode" value="opaque" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="base=http://blog.jitendrabhatt.com&wp=1&vid=2&pid=1&page=http://blog.jitendrabhatt.com/feed/" /><object type="application/x-shockwave-flash" data="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29856" width="600" height="450"><param name="movie" value="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29856" /><param name="wmode" value="opaque" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="base=http://blog.jitendrabhatt.com&wp=1&vid=2&pid=1&page=http://blog.jitendrabhatt.com/feed/" /></object></object>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2012/05/mck-basketball-5-2-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MCK Basketball 4-11-2012</title>
		<link>http://blog.jitendrabhatt.com/2012/04/mck-basketball-4-11-2012/</link>
		<comments>http://blog.jitendrabhatt.com/2012/04/mck-basketball-4-11-2012/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 16:36:47 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=145</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<style type="text/css">
.avs_player .title {
	font-size:18px;
	font-weight:bold;
	margin:5px 0px;
	line-height:14px;
}
.avs_player .category {
	margin:3px 0px;
	font-size:12px;
	float:left;
}
.avs_player .hits {
	margin:3px 0px;
	font-size:12px;
	float:right;
}
.avs_player .description {
	margin:7px 0px;
	padding:5px;
	border:1px solid #E7E7E7;
}
</style>
<div class="avs_player" style="width:600px;">
<div class="title">MCK Basketball 04112012</div>
<div class="category"><strong>Category : </strong>MCK Videos</div>
<div class="hits"><strong>Hits : </strong>579</div>
<div style="clear:both;"></div>
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="450"><param name="movie" value="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29464" /><param name="wmode" value="opaque" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="base=http://blog.jitendrabhatt.com&wp=1&vid=1&pid=1&page=http://blog.jitendrabhatt.com/feed/" /><object type="application/x-shockwave-flash" data="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29464" width="600" height="450"><param name="movie" value="http://blog.jitendrabhatt.com/wp-content/plugins/all-video-gallery/player.swf?random=29464" /><param name="wmode" value="opaque" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="base=http://blog.jitendrabhatt.com&wp=1&vid=1&pid=1&page=http://blog.jitendrabhatt.com/feed/" /></object></object>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2012/04/mck-basketball-4-11-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VW Jetta 2004 &#8211; Broken Glovebox</title>
		<link>http://blog.jitendrabhatt.com/2010/02/vw-jetta-2004-broken-glovebox/</link>
		<comments>http://blog.jitendrabhatt.com/2010/02/vw-jetta-2004-broken-glovebox/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 03:50:02 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Science and Technology]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=140</guid>
		<description><![CDATA[The link below will take you to a great post that helped me fix my broken glovebox in less than 30 minutes. My glovebox would not stay shut and the handle wasn&#8217;t doing anything. I noticed that the pins that keep the glovebox locked in were not moving. So I researched this online and found [...]]]></description>
			<content:encoded><![CDATA[<p>The link below will take you to a great post that helped me fix my broken glovebox in less than 30 minutes.</p>
<p>My glovebox would not stay shut and the handle wasn&#8217;t doing anything.  I noticed that the pins that keep the glovebox locked in were not moving.  So I researched this online and found this very useful post.  Amazingly I had the exact same problem as shown in the post linked below (and I applied the the same fix).  I will admit that the toughest thing was snapping the cover off.  It is glued on and does not seem like it wanted to come off.  It is very scary taking it off, because you will swear to yourself that something is wrong and that you are breaking it&#8230;but you are NOT!!!</p>
<p>Follow the link below and you should be good to go!</p>
<p><a href="http://forums.vwvortex.com/zeropost?cmd=tshow&#038;id=3836558">http://forums.vwvortex.com/zeropost?cmd=tshow&#038;id=3836558</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2010/02/vw-jetta-2004-broken-glovebox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple HTML Redirect Code</title>
		<link>http://blog.jitendrabhatt.com/2010/01/simple-html-redirect-code/</link>
		<comments>http://blog.jitendrabhatt.com/2010/01/simple-html-redirect-code/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:10:00 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=126</guid>
		<description><![CDATA[I decided to help my buddy out with a website he is working on. It has over 2000 pages all which are in html. In order to make it a bit more dynamic we are changing all of the pages to .php and updating the code to be more flexible and easier to update. We [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to help my buddy out with a website he is working on. It has over 2000 pages all which are in html. In order to make it a bit more dynamic we are changing all of the pages to .php and updating the code to be more flexible and easier to update. We should incorporate a database and make the website data-driven however we&#8217;ll forget about that for now and focus on the topic at hand.</p>
<p>So while changing all the pages to .php I realized that most of the pages have anywhere from a few hundred to over a thousand other pages linking to them. Instead of constantly updating every page on the site and uploading it to the server I decided to use a redirect on the old .html pages in order to alleviate any concerns about missing or incorrect links. I do not want forget to change a single link, since we all know that will end up being the most important link of all!!!</p>
<p>Anyway, I decided to incorporate a simple HTML redirect.<br />
&lt;head&gt;&lt;meta HTTP-EQUIV=&#8221;REFRESH&#8221; content=&#8221;0; url=http://www.yourdomain.com/index.html&#8221;&gt;&lt;/head&gt;</p>
<p>The redirect solution is not ideal in many cases, but can be useful when absolutely needed. In this case, I no longer have to worry about a single incorrect link. Any page that linked to abc.html is now being redirected to abc.php. This is a very simple way to avoid major headaches and speed up the updating process. The main thing to keep in mind is to delete everything from the old HTML page except for the redirect code. This will help with the redirect speed. If you comment out all the code on the .html page, the server will still load it before redirecting to the new page!</p>
<p>Data Source: <a href="http://www.web-source.net" target="_blank">Web Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2010/01/simple-html-redirect-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Food, Inc. &#8211; A great documentary</title>
		<link>http://blog.jitendrabhatt.com/2009/12/food-inc-a-great-documentary/</link>
		<comments>http://blog.jitendrabhatt.com/2009/12/food-inc-a-great-documentary/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 03:20:29 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Healthy Living]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=117</guid>
		<description><![CDATA[Food, Inc. is a great eye opening documentary. Like many other documentaries it changes the way you look at certain things. For sure I will not renounce all fast food or quit going to restaurants simply because I love the taste. However, purchasing locally grown foods and paying attention to whom I am buying the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.jitendrabhatt.com/wp-content/uploads/2009/12/FoodInc_cover.jpg" alt="null" style="padding:2px;" align="left" />Food, Inc. is a great eye opening documentary.  Like many other documentaries it changes the way you look at certain things.  For sure I will not renounce all fast food or quit going to restaurants simply because I love the taste.  However, purchasing locally grown foods and paying attention to whom I am buying the food from is something I can incorporate into my daily routine without any hard work.  Cutting down on the amount of times I eat out is something I am definitely open to.  Not only will it help my health but my pockets as well.  And let&#8217;s be honest &#8211; most of the people on this planet are driven by money.  Before we do almost anything, the first question we ask is how much will it cost, and is the cost worth it.</p>
<p>Not to steer too far away from the point of this post&#8230;please check out Food, Inc.  If nothing else, it makes a good movie!  For me it&#8217;s not a life altering movie, but it definitely provided a lot of insight on a subject I was blind to.  We never stop to think how buying food(something we do DAILY) or the type of food we buy affects us and the rest of the life on our planet.<br />
<br />
If nothing else check out this link for Food, Inc. &#8211; <a href="http://www.foodincmovie.com/" target="_blank">Food, Inc.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/12/food-inc-a-great-documentary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Philips VOIP321 Skype Phone Windows 7 Compatibility</title>
		<link>http://blog.jitendrabhatt.com/2009/12/philips-voip321-skype-phone-windows-7-compatibility/</link>
		<comments>http://blog.jitendrabhatt.com/2009/12/philips-voip321-skype-phone-windows-7-compatibility/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 00:43:59 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Science and Technology]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=108</guid>
		<description><![CDATA[For quite some time I have had a problem getting my Philips VOIP321 Phone to work with Skype on Windows 7.  Up to this point the only solution was using the phone with Windows XP.  However, recently I was successful in making the Skype Phone work successfully with WIN 7.  Below you will find steps [...]]]></description>
			<content:encoded><![CDATA[<p>For quite some time I have had a problem getting my Philips VOIP321 Phone to work with Skype on Windows 7.  Up to this point the only solution was using the phone with Windows XP.  However, recently I was successful in making the Skype Phone work successfully with WIN 7.  Below you will find steps to help you set up your Philips VOIP321 with WIN 7.</p>
<ol>
<li>Make sure you are starting from scratch!  If you have already installed the VOIP321 software, uninstall it and restart the computer.</li>
<li>Download the updated Philips Driver for Windows Vista (<a href="/blog/wp-content/uploads/software/voip3211g_37_dwv_eng.exe">voip3211g_37_dwv_eng</a>)</li>
<li>Install the downloaded software (voip3211g&#8230;)</li>
<li>After Installation&#8230;.</li>
<li>Right-click on the VOIP321 icon on the desktop</li>
<li>Select &#8220;Properties&#8221;</li>
<li>Click on the &#8220;Compatibility&#8221; tab</li>
<li>Check the &#8220;Run this program in compatibility mode for&#8221; box</li>
<li>Select &#8220;Windows Vista (Service Pack 2)&#8221;</li>
<li>Restart the computer</li>
</ol>
<p>That&#8217;s it!</p>
<p>Data Source: <a href="http://www.philips.com">Philips.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/12/philips-voip321-skype-phone-windows-7-compatibility/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Lenovo T61 with Nvidia Quadro NVS 140m &#8211; Windows 7</title>
		<link>http://blog.jitendrabhatt.com/2009/09/lenovo-t61-with-nvidia-quadro-nvs-140m-windows-7/</link>
		<comments>http://blog.jitendrabhatt.com/2009/09/lenovo-t61-with-nvidia-quadro-nvs-140m-windows-7/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 20:22:55 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=96</guid>
		<description><![CDATA[How to install NVIDIA Drivers on your WIN 7 All over the internet all Lenovo users are having the same issue with the new WIN 7 OS. They cannot get the NVIDIA Drivers working on their laptop. If you are like me and use your laptop to connect to your HDTV, play games, or edit [...]]]></description>
			<content:encoded><![CDATA[<p><b>How to install NVIDIA Drivers on your WIN 7</b><br />
<br />
All over the internet all Lenovo users are having the same issue with the new WIN 7 OS.  They cannot get the NVIDIA Drivers working on their laptop.  If you are like me and use your laptop to connect to your HDTV, play games, or edit videos then of course this is a major problem.  I have seen many people post bogus solutions with links that do not work or take you to a &#8220;This page does not exist&#8221; site, or simply post workarounds that do not &#8220;WORK&#8221;!<br />
<br />
Well, I have the solution for you and it&#8217;s a simple fix that takes less than 1 minute.<br />
<br />
NVIDIA Quadro NVS 140M Driver Instructions:<br />
<b style="color:FF0000;">***Follow these instructions step by step, do not try steer away from the instructions or the install will not work!!! </b><br />
1) Download the <b>NVIDIA VISTA x64 bit</b> driver from Lenovo.com (YES VISTA DRIVER FOR WIN 7)<br />
2) Extract the files to C:\DRIVERS\WIN\VIDEO<br />
3) Open up Command Prompt<br />
4) Type in C:\DRIVERS\WIN\VIDEO\SETUP.EXE<br />
5) Follow the NVIDIA prompts all the way through<br />
6) Click Finish and restart your computer<br />
<br />
That&#8217;s it!  Please let me know if this does not work for you and I will do my best to help&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/09/lenovo-t61-with-nvidia-quadro-nvs-140m-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chevy Volt estimated 230 MPG in city</title>
		<link>http://blog.jitendrabhatt.com/2009/08/chevy-volt-estimated-230-mpg-in-city/</link>
		<comments>http://blog.jitendrabhatt.com/2009/08/chevy-volt-estimated-230-mpg-in-city/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 13:47:47 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Science and Technology]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=79</guid>
		<description><![CDATA[GM says their new Chevy Volt will get up to 230 miles per gallon in the city. This would be the first vehicle to exceed the three digit gas mileage barrier.  The car has an electric motor and a small internal combustion engine inside.  The electric motor is rechargeable using your standard home outlet. Set [...]]]></description>
			<content:encoded><![CDATA[<p>GM says their new Chevy Volt will get up to 230 miles per gallon in the city.</p>
<p>This would be the first vehicle to exceed the three digit gas mileage barrier.  The car has an electric motor and a small internal combustion engine inside.  The electric motor is rechargeable using your standard home outlet.</p>
<p>Set to hit the showrooms in 2010 this would be a huge jump from the current electric / hybrid cars that do not get more than 100 MPG.</p>
<p>I&#8217;m very excited to see what kind of response this car will get when it finally hits the streets.  I do have to mention that as of right now the car is estimated to cost about $40K which limits its consumer market.  However, I am sure that the pricing will be restructured in order to make the vehicle more affordable.</p>
<p> <img class="alignnone size-full wp-image-80" title="Chevy_Volt" src="http://blog.jitendrabhatt.com/wp-content/uploads/2009/08/Chevy_Volt.jpg" alt="Chevy_Volt" width="500" height="354" /><br />
Image Source: <a href="http://www.ecoautoninja.com/wp-content/uploads/2009/04/chevy-volt1.jpg">http://www.ecoautoninja.com/wp-content/uploads/2009/04/chevy-volt1.jpg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/08/chevy-volt-estimated-230-mpg-in-city/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SIMPLE Browser Compatibility Script using ASP</title>
		<link>http://blog.jitendrabhatt.com/2009/08/simple-browser-compatibility-script-using-asp/</link>
		<comments>http://blog.jitendrabhatt.com/2009/08/simple-browser-compatibility-script-using-asp/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:52:24 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=57</guid>
		<description><![CDATA[This is a very simple Browser Compatibily Script using ASP to help you with basic cross-platform issues. So what I was looking for is very simple. I have a page which uses CSS to display a New Products Bar on a website. I was using CSS along with JQuery and when all was said and [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple Browser Compatibily Script using ASP to help you with basic cross-platform issues.</p>
<p>So what I was looking for is very simple. I have a page which uses CSS to display a New Products Bar on a website. I was using CSS along with JQuery and when all was said and done, in IE everything was working perfectly. However, as most developers know, one of the most common issues with different browsers is how they handle CSS. When I checked the same page in FireFox, my text, which was supposed to be in the middle of the screen, was showing up at the top left of the site (position:absolute). Therefore, instead of re-coding the whole page and figuring out how to make JQuery and CSS play nice with all browsers, I decided to simply implement a very basic browser-compatibility script to get around the problem.</p>
<p><code><br />
&lt;%<br />
dim currentBrowser, browserHeight</p>
<p>currentbrowser = Request.ServerVariables("HTTP_USER_AGENT")</p>
<p>If InStr(1, Request.ServerVariables("HTTP_USER_AGENT"), "MSIE") then<br />
  browserHeight = "0"<br />
Else<br />
  browserHeight = "-12"<br />
End If<br />
%&gt;<br />
</code></p>
<p>Basically, I am checking to see if the browser that is calling this page is IE or not. If it is IE I am setting the browserHeight=0 and if it is any other browser then I am setting the browserHeight=&#8221;-12&#8243;.</p>
<p>browerHeight is serving as my top: value in CSS.</p>
<p>That&#8217;s it. Without spending too much time I solved my problem with this simple block of code. Of course, this is not meant for everyone, but it is a very useful script for anyone who needs a quick fix with browser-compatibility issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/08/simple-browser-compatibility-script-using-asp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails</title>
		<link>http://blog.jitendrabhatt.com/2009/08/error-1452-23000-cannot-add-or-update-a-chile-row-a-foreign-key-constraint-fails/</link>
		<comments>http://blog.jitendrabhatt.com/2009/08/error-1452-23000-cannot-add-or-update-a-chile-row-a-foreign-key-constraint-fails/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 20:16:02 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.jitendrabhatt.com/?p=59</guid>
		<description><![CDATA[ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails Here&#8217;s what happened and how I fixed the error: I had two tables I was working on &#8211; CUST and MEDIA tables. I was looking to modify the cust table and make the MEDIA_ID (PK for MEDIA TABLE) a FOREIGN [...]]]></description>
			<content:encoded><![CDATA[<p><b>ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails</b><br />
<br />
Here&#8217;s what happened and how I fixed the error:<br />
<br />
I had two tables I was working on &#8211; CUST and MEDIA tables.  I was looking to modify the cust table and make the MEDIA_ID (PK for MEDIA TABLE) a FOREIGN KEY in the CUST TABLE.  However, after several attempts I kept getting the aforementioned error.</p>
<p>Here is my ALTER statement: ALTER TABLE CUST ADD FOREIGN KEY (MEDIA_ID) REFERENCES MEDIA (MEDIA_ID);</p>
<p><img src="http://blog.jitendrabhatt.com/wp-content/uploads/2009/08/CUST-table.jpg" alt="CUST table" title="CUST table" width="483" height="252" class="alignnone size-full wp-image-60" /></p>
<p><img src="http://blog.jitendrabhatt.com/wp-content/uploads/2009/08/MEDIA-table.jpg" alt="MEDIA table" title="MEDIA table" width="507" height="146" class="alignnone size-full wp-image-61" /></p>
<p>I researched this ERROR online and found many possible fixes however, none of them applied/worked for my problem.  Therefore, I decided to start over and do a thorough inspection on both of these two tables&#8230;</p>
<p>In a matter of seconds I found the problem&#8230;.If you will take a look at the two images above you will notice that the MEDIA_ID in the CUST table was defined as a decimal(1,0) while the MEDIA table defined MEDIA_ID as a decimal(10,0).  Therefore, my REFERENCE clause was failing since the MEDIA_ID in the MEDIA table accepts different values opposed to the MEDIA_ID in the CUST table.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jitendrabhatt.com/2009/08/error-1452-23000-cannot-add-or-update-a-chile-row-a-foreign-key-constraint-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

