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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:52:11+00:00 2026-06-06T01:52:11+00:00

I am creating a PHP application for my company and I am using about

  • 0

I am creating a PHP application for my company and I am using about 50+ checkboxes to allow the user to select what parts of the table they want to pull. However, right now, if the user selects a checkbox that has a corresponding SQL column name that is NOT in the table, there is no handle (it only returns 0 columns). Is there a way to handle this kind of problem easily? Thanks

  • 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-06T01:52:13+00:00Added an answer on June 6, 2026 at 1:52 am

    I wouldn’t give the users options that are not available, in the first place.

    But if you want to check a table structure in SQL, use DESCRIBE tablename as a query, then loop through the results looking at column Field. You should do that before constructing the SQL query that will get your actual data, so you don’t reference any non-existent columns.

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

Sidebar

Related Questions

I'm creating a multi-user/company web application in PHP & MySQL. I'm interested to know
I'm actually creating a web application using PHP and seek help verifying a user.
I am creating a login system for a web application using PHP. My question
I have just succeeded in creating oAuth authentication for my twitter application using PHP.
I am creating a PHP application and I want to display the number of
I'm creating an application (using PHP / Codeigniter / MYSQL) for tracking volunteers at
I am part of a team creating a web application using PHP and MySQL.
I am part of a team creating a web application using PHP and MySQL.
I'm creating a new PHP application and want to make sure I get the
I'm creating a quiz web application using PHP. Each question is comprised of a

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.