<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — SQL code on web]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7497&amp;type=atom" />
	<updated>2018-05-06T16:08:15Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7497</id>
		<entry>
			<title type="html"><![CDATA[Re: SQL code on web]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31576#p31576" />
			<content type="html"><![CDATA[<p>It appears that you have some of the debug parameters in your <strong>config.php</strong> file turned on - turn them off to get rid of these outputs.</p><p>This last specific SQL comes from the <strong>function get_sql_for_journal_inquiry()</strong> in <strong>gl/includes/db/gl_db_trans.inc</strong>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-05-06T16:08:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31576#p31576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SQL code on web]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31575#p31575" />
			<content type="html"><![CDATA[<p><strong>&quot;It&#039;s not a bug, it&#039;s a feature&quot;</strong></p><p>Please compare your config.php with config.default.php and this will reveal why every page shows the sql queries.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-05-06T15:39:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31575#p31575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SQL code on web]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31574#p31574" />
			<content type="html"><![CDATA[<p>Hi</p><p>There is some SQL code in the green field on the footer of web version like:</p><p>&lt;div id=&#039;footer_debug&#039;&gt;&lt;div class=&#039;note_msg&#039;&gt;&lt;pre&gt;SELECT name, value FROM 0_sys_prefs&lt;/pre&gt;</p><br /><p>&lt;div id=&#039;footer_debug&#039;&gt;&lt;div class=&#039;note_msg&#039;&gt;&lt;pre&gt;SELECT COUNT(*) FROM (SELECT IFNULL(a.gl_seq,0) as gl_seq,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gl.tran_date,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gl.type,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gl.type_no,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; refs.reference,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUM(IF(gl.amount&gt;0, gl.amount,0)) as amount,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; com.memo_,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(ISNULL(u.user_id),&#039;&#039;,u.user_id) as user_id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 0_gl_trans as gl<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_audit_trail as a ON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (gl.type=a.type AND gl.type_no=a.trans_no)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_comments as com ON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (gl.type=com.type AND gl.type_no=com.id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_refs as refs ON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (gl.type=refs.type AND gl.type_no=refs.id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_users as u ON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.user=u.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE gl.tran_date &gt;= &#039;2018-04-06&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND gl.tran_date &lt;= &#039;2018-05-06&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND gl.amount!=0 AND gl_seq=0 GROUP BY gl.tran_date, a.gl_seq, gl.type, gl.type_no) tmp_count&lt;/pre&gt;</p><p>No difference where I am, they are everywhere, on the web, in the reports.</p><p>I don&#039;t know how they get there. Please tell me how can I fix it.</p><p>thank you so much.</p>]]></content>
			<author>
				<name><![CDATA[A.A]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41369</uri>
			</author>
			<updated>2018-05-06T11:16:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31574#p31574</id>
		</entry>
</feed>
