<?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>Edmonds Commerce Blog &#187; barcode</title>
	<atom:link href="http://www.edmondscommerce.co.uk/category/barcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edmondscommerce.co.uk</link>
	<description>Freelance PHP Ecommerce and SEO Developer in the UK</description>
	<lastBuildDate>Sat, 04 Sep 2010 11:07:37 +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>MySQL Data Cleanse EAN Numbers</title>
		<link>http://www.edmondscommerce.co.uk/barcode/mysql-data-cleanse-ean-numbers/</link>
		<comments>http://www.edmondscommerce.co.uk/barcode/mysql-data-cleanse-ean-numbers/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 17:25:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[barcode]]></category>
		<category><![CDATA[ean]]></category>
		<category><![CDATA[ean13]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/?p=1251</guid>
		<description><![CDATA[Just found this MySQL snippet for validating EAN numbers.
http://snipplr.com/view.php?codeview&#038;id=17928
I have modified it a bit to suit my requirements (namely totally corrupted EAN data).
PLAIN TEXT
SQL:




SELECT ean


FROM products


WHERE


&#40;LENGTH&#40;ean&#41; != 13&#41;


&#124;&#124;


&#40;SUBSTRING&#40;&#40;10 - &#40;&#40;&#40;&#40;


SUBSTRING&#40;ean FROM 2 FOR 1&#41; +


SUBSTRING&#40;ean FROM 4 FOR 1&#41; +


SUBSTRING&#40;ean FROM 6 FOR 1&#41; +


SUBSTRING&#40;ean FROM 8 FOR 1&#41; +


SUBSTRING&#40;ean FROM 10 FOR 1&#41; +


SUBSTRING&#40;ean [...]]]></description>
		<wfw:commentRss>http://www.edmondscommerce.co.uk/barcode/mysql-data-cleanse-ean-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EAN13 Barcode Check Digit with PHP</title>
		<link>http://www.edmondscommerce.co.uk/php/ean13-barcode-check-digit-with-php/</link>
		<comments>http://www.edmondscommerce.co.uk/php/ean13-barcode-check-digit-with-php/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 15:10:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[barcode]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ean13]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/php/ean13-barcode-check-digit-with-php/</guid>
		<description><![CDATA[EAN13 is a barcode format. It consists of 12 numbers which you will generally have a range assigned to you. The 13th digit is called the check digit and is formulated by loooking at the other 12 digits. The purpose of the check digit is to ensure that the number is being read correctly as [...]]]></description>
		<wfw:commentRss>http://www.edmondscommerce.co.uk/php/ean13-barcode-check-digit-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
