Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Informix SQL /.idc problem

Informix SQL /.idc problem

Informix SQL /.idc problem

I have written an idc file to pull data from our database to the .htx page everything is returned to the .htx other than the count?? Has anyone had this issue? If so please help. Here is the code:

Datasource: serv
Template: mprc08.htx
+ SELECT st_description
+ FROM statcode
+   WHERE st_status_code = '%search_stat%';
+ SELECT cm_inv_name, TODAY dt_today
+ FROM custmaster, cust_group
+   WHERE cm_cust_id = gr_cust_id
+      AND cm_cust_id = '%cust_id%'
+      AND gr_user = '%cust_user%';
+ SELECT count(*) AS cnt
+ FROM jobsheet, cust_group
+ WHERE js_customer_id = '%cust_id%'
+ AND js_customer_id = gr_cust_id
+ AND gr_user = '%cust_user%'
+ AND js_curr_stat_code = '%search_stat%';

i am trying to get it to the .htx using <%cnt%>

Thanks in advance.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close