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

  • SEARCH
  • Home
  • 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 8874907
In Process

The Archive Base Latest Questions

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

I have a table that is showing the data from the database.the code is

  • 0

I have a table that is showing the data from the database.the code is listed below:

<table class="table table-hover table-bordered" style="width:300px" id="contact">
    <tbody data-bind="foreach:items">
        <tr>
            <td style="height:180px" data-bind="text:title1"></td>
        </tr>
    </tbody>
</table>

and the i am using ajax to fetch the data:

$(function(){
  $('.datepicker').datepicker({
        dateFormat: 'M dd,yy',
        onSelect: function(dateText, inst) { 
                var date = $(this).datepicker('getDate');
                var dateFormat = inst.settings.dateFormat || $.datepicker._defaults.dateFormat;
                $('#date').text($.datepicker.formatDate( dateFormat, date, inst.settings));
                var month = date.getMonth() + 1;
                var day = date.getDate();
                var year = date.getFullYear();
                var date1 = year + "/" + month + "/" + day;
                $.post(root+"home/index?json",{date:date1}, function(data) {ko.applyBindings(new DynamicModel(data.calendar1),document.getElementById("contact"));});
        },
    });
});

Table is showing the data that is coming from the database but is getting vanished when there is no data from the database
so please help me for this..

  • 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-14T18:50:24+00:00Added an answer on June 14, 2026 at 6:50 pm

    Adding a thead will help as then it will at least show the header. Since the empty table will not generate any code I am guessing it is not showing up

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

Sidebar

Related Questions

I have table that I insert data with following query (from c# code): INSERT
In my database I have a simple table that contains values showing the basic
I have the following data in a database table, Columns : Date, Hour(from 1
I am writing code that pulls data from database tables and writes them to
I have a table that stores data that has been entered regarding the amount
I have limited screen space for a table that I'm displaying, so I'm showing
I am using the following Code, to get data from the Database in phpmyadmin,
I have a table named t_Student in Microsoft SQL Server 2005 database. In that
I have an app that shows data from a SQLite DB and the data
I have my own TableModel implementation designed to show data from a SQL database.

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.