Page 1 of 1

PHP - Query error in Internet Explorer

Posted: Sun Nov 14, 2010 12:45 pm
by agriz
Hi,

When ever a query throws an error, I will get mail.
For example http://www.justlinkexchange.com/article ... or-12.html
If i click this url in firefox and safari, I am not getting any error.

But if i ren this page in Internet explorer 8 i get email with error query.
But the comments are displayed in all the browser. But I am getting email saying the following query failed to execute

Code: Select all

SELECT count(*) as t FROM tble_comment WHERE article_id =  AND comment_status = 'active'
But i guess there is no relation to browser and PHP. But where can i trace the problem?

Re: PHP - Query error in Internet Explorer

Posted: Sun Nov 14, 2010 1:24 pm
by Celauran

Code: Select all

SELECT count(*) as t FROM tble_comment WHERE article_id =  AND comment_status = 'active'
Notice the article_id =

Whatever was supposed to be there is missing.

Re: PHP - Query error in Internet Explorer

Posted: Sun Nov 14, 2010 1:30 pm
by agriz
Yes, I actually put an echo

Code: Select all

echo $article_id;
I got the exact id and of course, in browser it returns all the comments associated with that article.
It is really a strange problem to me.