List:General Discussion« Previous MessageNext Message »
From:Peter Brawley Date:April 25 2006 8:36pm
Subject:Re: Accumilating Blog Comments
View as plain text  
-Patrick wrote:
> $query_rsComments = sprintf("SELECT id_com WHERE idart_com=%s ORDER BY
> date_com ASC", $KTColParam1_rsComments);
>   
No FROM clause. Also, don't you need single quotes around %s?

PB

-----
>
> can anyone see what Im trying to do here? basically, I want to match the
> id_com with an idart_com to produce a value and report back through the
> other chunk of code already given to output a number.. using
> mysql_num_rows(). But Im getting syntax and check line errors..
>
> Any thoughts?
> -Patrick
>
>   


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.6/323 - Release Date: 4/24/2006

Thread
Accumilating Blog Comments-Patrick25 Apr
  • Re: Accumilating Blog CommentsPhilippe Poelvoorde25 Apr
    • Re: Accumilating Blog Comments-Patrick25 Apr
  • Re: Accumilating Blog CommentsPeter Brawley25 Apr