<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — update causes old code not to work]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1715&amp;type=atom" />
	<updated>2010-12-07T18:00:25Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1715</id>
		<entry>
			<title type="html"><![CDATA[Re: update causes old code not to work]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7623#p7623" />
			<content type="html"><![CDATA[<p>I&#039; don&#039;t know what are you talking about. The code fragment you have attached make use of mysqli database API which is not used in FA distribution. And yes, there were huge changes throughout FA code between 2.2 and 2.3 releases.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-12-07T18:00:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7623#p7623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[update causes old code not to work]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7604#p7604" />
			<content type="html"><![CDATA[<p>hello,<br />We recently upgraded a clients front accounting site from version 2.2.5 to 2.3 (RC3) and a page that was added to the old version is now coming up with an error,</p><p>The code that seems to be at fault is as follows:</p><p>$stockID = $rRow[&#039;stock_id&#039;];<br />&nbsp; &nbsp; $brStmt = &quot;SELECT SUM(qty) FROM &quot;.TB_PREF.&quot;stock_moves WHERE stock_id=&#039;$stockID&#039;&quot;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $rbr = @mysqli_query($dbc, $brStmt);<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $Rrbr = mysqli_fetch_array($rbr);</p><p>and the error from the page is:</p><p>mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in file: /var/www/fa/inventory/inventory_overview.php at line 68</p><p>the result is mostly displayed correctly but the total quantity, which is derived from this query is 0 in all items.<br />Is there changes in the new version that would cause this?</p><p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[nickMolhoek]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=2677</uri>
			</author>
			<updated>2010-12-06T02:46:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7604#p7604</id>
		</entry>
</feed>
