Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Tue, 25 Sep 2012 22:12:43 +0200 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: Multiple Tags, Filled With MySQL DB data with PHP References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 18 NNTP-Posting-Host: 2001:980:9089:1:9de9:3dfe:f47e:a8c8 X-Trace: 1348604401 news.xs4all.nl 6847 [2001:980:9089:1:9de9:3dfe:f47e:a8c8]:38315 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:7170 On 25-09-2012 21:58, tom.rankin51@googlemail.com wrote: > I'm not too sure how to debug correctly following these instructions. I can place the code at the beginning and end of my page, but I am getting a syntax error when typing $result = mysqli->query($sql); > >> > $sql = "......."; >> $result = mysqli->query( $sql ); >> $debugtxt .= "sql: {$sql}\n"; or, that last one could be: echo "SQL: {$sql}\n"; it should echo the query to the output......