Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9074851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:43:50+00:00 2026-06-16T18:43:50+00:00

I am fetching results with query and using plugin and tags to display data

  • 0

I am fetching results with query and using plugin and tags to display data on a page built by Control Panel. I need to display the total view count of each product. By default it is 0. the wierd thing if the count is greater than 0 it displays all right but if there is no view count means if count is 0 it does not display anything. I have tried conditions but they are also not working. How can i dispay 0 fetched from query using tags?

EDITED :

Here is what i am trying to do.
This is the query

SELECT 
    ldc.id,
    ldc.product_name,
    ldc.product_viewed,
FROM default_products AS ldc

Here product_viewed is an integer field which contain the number of views by users. The default value for a new product is 0 (uploaded by admin).

This is tag i am using to display product_viewed

<table>
{{ Products:getProductsDetail }}
    <tr>
        <td>Product Name</td>
        <td><h2>{{ product_name }}</h2></td>
        <td>Hits</td>
        <td>{{ product_viewed }}</td>
    </tr>
{{ /Products:getProductsDetail }}
</table>

Everything is working fine except the {{ product_viewed }} because it contains 0. I have tested the query and its working fine fetching the results as expected but using Lex Parser tag it displays nothing. I have simplified my query here is image result

http://imageshack.us/photo/my-images/138/testmy.png/

You can see Hits : display nothing . This is what i am facing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:43:51+00:00Added an answer on June 16, 2026 at 6:43 pm

    I have resolved the issue. I am using old version. Using latest version does not encounter this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried fetching MySQL query results using mysql_fetch_row() and mysql_result() and numeric values
I'm having a problem fetching results from a Core Data store using predicates. What
I am fetching some data from a site using its API-key and some other
I'm fetching some data from an MSSQL table using the mssql_fetch_object, but the text
I'm fetching some data from FB using the following code: dynamic parameters = new
the search.php page is just not fetching results. as soon as i press on
I am fetching a number of results from my database using a mysql_query .
How to set cell/column value dynamically using PHPExcel library? I am fetching result set
When fetching a query, is there a penalty for setting the fetch limit to
I am fetching some values in a forEach clause data.forEach(function(content){ ... controller.setAttribute(value from data);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.