<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to get TB_PREF defined value?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8663</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8663&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to get TB_PREF defined value?.]]></description>
		<lastBuildDate>Sat, 25 Jan 2020 03:43:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to get TB_PREF defined value?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36908#p36908</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (mr.murtaza.abbasi)]]></author>
			<pubDate>Sat, 25 Jan 2020 03:43:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36908#p36908</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to get TB_PREF defined value?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36896#p36896</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 25 Jan 2020 02:23:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36896#p36896</guid>
		</item>
		<item>
			<title><![CDATA[How to get TB_PREF defined value?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36863#p36863</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (mr.murtaza.abbasi)]]></author>
			<pubDate>Mon, 20 Jan 2020 04:01:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36863#p36863</guid>
		</item>
	</channel>
</rss>
