PHP - Query error in Internet Explorer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

PHP - Query error in Internet Explorer

Post 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?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: PHP - Query error in Internet Explorer

Post 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.
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

Re: PHP - Query error in Internet Explorer

Post 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.
Post Reply