<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — MS Access integration with FA]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6649&amp;type=atom" />
	<updated>2017-01-18T08:36:01Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6649</id>
		<entry>
			<title type="html"><![CDATA[Re: MS Access integration with FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27405#p27405" />
			<content type="html"><![CDATA[<p>Before safely using strings in SQL statements, cleaning them up has traditionally been done using the likes of <strong>mysql_real_escape_string</strong> and <strong>add_slashes</strong>. Whilst the latter can be used for insertion/updation of records in MS Access, the following function will be suited for many instances where <strong>offending/unsafe/exploitable</strong> characters need to be stripped:<br /></p><div class="codebox"><pre><code>function msaccess_escape_string($str) {
    $lf = &quot;\n&quot;;
    $str = str_replace(Array(&quot;&#039;&quot;, &#039;&quot;&#039;, &quot;\t&quot;, &quot;\r&quot;, $lf, &quot;\\&quot;),&quot;&quot;, $str);
    if ($str == NULL) $str = &#039; &#039;; // Access does not allow null fields to be blank in insert using this method
    return $str;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-18T08:36:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27405#p27405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MS Access integration with FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27388#p27388" />
			<content type="html"><![CDATA[<p>Migrating data from any string format especially the MySQL ANSI date format <strong>yyyy-mm-dd</strong> into MS Access <strong>Short Date</strong> format irrespective of the locale setting (<strong>m/d/Y</strong> or <strong>d/m/Y</strong>) is done using the <strong>DateValue(str DateAsString)</strong> function.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-15T12:09:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27388#p27388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MS Access integration with FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27387#p27387" />
			<content type="html"><![CDATA[<p>FA uses MySQL whilst many applications use MS Access. PHP on Windows allows for interfacing with both MySQL and MS Access. Attached herewith is the possible choice of PHP data connection strings for both MDB and ACCDB versions (2000 and 2007) of MS Access databases and sample usage PHP code to interface with it.</p><p>Those who run POS applications based on MS Access can use this means to interface with FA.</p><p>Further interfacing sample code is available in <a href="https://github.com/apmuthu/phpprojects/tree/master/MSAccessInPHP">my GitHub repo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-15T09:31:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27387#p27387</id>
		</entry>
</feed>
