<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to get TB_PREF defined value?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8663&amp;type=atom" />
	<updated>2020-01-25T03:43:28Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8663</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get TB_PREF defined value?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36908#p36908" />
			<content type="html"><![CDATA[<p>And when <strong>db_query()</strong> function is triggered, that <strong>&amp;TB_PREF&amp;</strong> from query string is replaced by current user <strong>tbpref</strong> variable initiated in <strong>$_SESSION[]</strong>...</p>]]></content>
			<author>
				<name><![CDATA[mr.murtaza.abbasi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45097</uri>
			</author>
			<updated>2020-01-25T03:43:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36908#p36908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get TB_PREF defined value?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36896#p36896" />
			<content type="html"><![CDATA[<p>The actual value of TB_PREF is in the <strong>$db_connections[#][&#039;tbpref&#039;]</strong> array element in <em>config_db.php</em>&#039;s&nbsp; that pertains to the company (#) logged in.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-01-25T02:23:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36896#p36896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get TB_PREF defined value?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36863#p36863" />
			<content type="html"><![CDATA[<p>I&#039;ve been trying to figure out either core function is defined TB_PREF or I&#039;ll have to make a function for it. I&#039;m making several functions and I don&#039;t from where to get TB_PREF for SQL query...</p><p><strong>Update--</strong><br />I found that TB_PREF is defined in <em>current_user.php</em> with value of <strong>&amp;TB_PREF&amp;</strong>, so how it is used?</p><p><strong>Solution--</strong><br />As mentioned above, <em>TB_PREF</em> is defined in <em>current_user.php</em> with value of <em>&amp;TB_PREF&amp;</em> which then is replaced with prefix of company related tables in <em>db_mysqli.php</em> using <em>str_replace()</em> function...</p>]]></content>
			<author>
				<name><![CDATA[mr.murtaza.abbasi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45097</uri>
			</author>
			<updated>2020-01-20T04:01:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36863#p36863</id>
		</entry>
</feed>
