Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

90
Visualizações
Displaying data using checkboxes for specific values when checked

I'm trying to display data from mysql with multiple true(1) or false(0) values but can't identify a way to display them using checkbox type. I want to display results where the result will be true for multiple categories when there checkbox is selected.

I'm assuming the php will something along the lines of SELECT * FROM table WHERE $checkbox,$checkbox='1' with a sort of array or i could be horribly wrong.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

<input type="checkbox" name="vehicle3"  
<?php if(array_value->getCheckbox()){checked} ?> > your text <br>

Maybe once you got your array of eg. categories with field checkbox field set to true or false. You can display checkboxes and add attribute "cheked" if ever the value is true

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda