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

104
Visualizações
How to show PHP values from sql query through javascript variable onto screen

I am looking to have my sql query ( that is put into php) put into a javascript variable to put on the screen for my npc dialogue:

i.e (quick example not exact)

$getdetails=mysql= Select * from quests WHERE npc='Person"

While ($row= mysql_fetch_array($getdetails)
{
    $activequest= $row['questname'];
    $showactive= "<tr> <td> $activequest </td></tr>";
}

(i have the dialogue in a html table where the options pop up for a user to click on)

this would make a list of results as a list:

-quest one

-quest two

-quest three

how do i get that list of results from my php to show onto my screen through a javascript variable and put it on the screen so a user can choose which quest theyd like to get dialogue for -- im using innerhtml to put the dialogue on the screen for the regular static options which works fine id like to do the same for the result options so if there is 3 quests they are listed or if there is 5 quests they are listed etc.

about 4 years ago · Juan Pablo Isaza
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