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 8340181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:06:35+00:00 2026-06-09T05:06:35+00:00

i have a data (in tabular form) that look like as follows 1 2

  • 0

i have a data (in tabular form) that look like as follows

1 2 3

     4     

5 0 6

8

This table contains three column and four rows and 12 cells.but all cells do not have value.i have stored data in this table to a database entering zero in the place of empty cells. but it result in the wastage of lot of space in database. I need to enter only non-zero values to my database and must be shown as the above table when retrieved.

  • 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-09T05:06:37+00:00Added an answer on June 9, 2026 at 5:06 am

    This seems pretty simple:

    Store the row and column values in their own separate columns, along with a value column that holds the cell value.

    You’ll never enter non-zero or blank database values.

    When you retrieve the values, populate them into a multidimensional array:

    $table[ $row['row'] ][ $row['col'] ] = $row['value'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table displaying tabular data in the form of a report. I
I have a table in html with some tabular data. The thing is that
I have an XML file that contains one set of data and this has
I have data coming from an external system (in CSV form). The data contains
I have data stored in three columns of Excel Column A: Serial Number Column
I have a web-site that generates some simple tabular data as html tables, many
We currently have a system that displays a page tabular data on the screen
I am developing a report generation application that could have tabular data across multiple
I have some tabular data with some functionality to view details that fires off
I have a file, lets say bigfile, with tabular data of the following form,

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.