<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — database error]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=261&amp;type=atom" />
	<updated>2008-07-24T07:50:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=261</id>
		<entry>
			<title type="html"><![CDATA[Re: database error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=831#p831" />
			<content type="html"><![CDATA[<p>The query you are referring to is inside /includes/db/inventory_db.inc in function add_stock_move().</p><p>The value of $person_id = null is among other in Manufacturing, work order entry. <br />I can NOT reproduce an error. The value of the person_id field is 0 after execution.<br />I am using PHP 5.2.4 and MySQL 5.0.18.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2008-07-24T07:50:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=831#p831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[database error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=827#p827" />
			<content type="html"><![CDATA[<p>The sql query can run correctly on the mysql older version i.e. 4.12 while it gives error when they are running on mysql version like 5+. </p><br /><p>Query:<br />&quot;INSERT INTO &quot;.TB_PREF.&quot;stock_moves (stock_id, trans_no, type, loc_code, <br />&nbsp; &nbsp; &nbsp; &nbsp; tran_date, person_id, reference, qty, standard_cost, visible, price, <br />&nbsp; &nbsp; &nbsp; &nbsp; discount_percent) VALUES (&#039;$stock_id&#039;, $trans_no, $type,&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;$location&#039;, &#039;$date&#039;, &#039;$person_id&#039;, &#039;$reference&#039;, $quantity, $std_cost, <br />&nbsp; &nbsp; &nbsp; &nbsp; $show_or_hide, $price, $discount_percent)&quot;;</p><p>It is explanation : Where $person_id = null</p>]]></content>
			<author>
				<name><![CDATA[ravindra]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=198</uri>
			</author>
			<updated>2008-07-23T08:06:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=827#p827</id>
		</entry>
</feed>
