<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FrontAccounting with two database]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6047&amp;type=atom" />
	<updated>2015-12-07T04:18:49Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6047</id>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with two database]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24863#p24863" />
			<content type="html"><![CDATA[<p>you can do it like this. </p><p> </p><div class="codebox"><pre><code> $db_connections = array (
  0 =&gt; 
  array (
    &#039;name&#039; =&gt; &#039;Company Name 1&#039;,
    &#039;host&#039; =&gt; &#039;localhost&#039;,
    &#039;dbuser&#039; =&gt; &#039;root&#039;,
    &#039;dbpassword&#039; =&gt; &#039;123456&#039;,
    &#039;dbname&#039; =&gt; &#039;first_database&#039;,
    &#039;tbpref&#039; =&gt; &#039;0_&#039;,
  ),
 
1 =&gt; 
  array (
    &#039;name&#039; =&gt; &#039;Company Name 2&#039;,
    &#039;host&#039; =&gt; &#039;localhost&#039;,
    &#039;dbuser&#039; =&gt; &#039;root&#039;,
    &#039;dbpassword&#039; =&gt; &#039;123456&#039;,
    &#039;dbname&#039; =&gt; &#039;second_database&#039;,
    &#039;tbpref&#039; =&gt; &#039;0_&#039;,
  ),
); </code></pre></div>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2015-12-07T04:18:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24863#p24863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with two database]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24861#p24861" />
			<content type="html"><![CDATA[<p>2 databases for the same company?</p><p>Switch database in the file <strong>config_db.php</strong>&#039;s <strong>dbname</strong> element for the appropriate company..</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-12-06T08:44:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24861#p24861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FrontAccounting with two database]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24859#p24859" />
			<content type="html"><![CDATA[<p>Hi want to know how I can connect FrontAccounting with two Databases.<br />I have two database, Want to pick and update some values in 2nd database.<br />Regards<br />DEep</p>]]></content>
			<author>
				<name><![CDATA[deep97]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20880</uri>
			</author>
			<updated>2015-12-05T23:55:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24859#p24859</id>
		</entry>
</feed>
