Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

161
Vistas
How can I Display database table record in textfields by clicking a value in dropdown list

I am new in this page, and I came with my problem while looking for help from someone who is liable. I have my database with the name "e_exam" and a table named "course". The table has this columns (coursecode, department, level). Therefore, I used this code:

  <select name="ex_coursecode">
    <option disabled selected>-- Select Course Code --</option><br><br>
 
 <?php
     //display course code to dropdownlist
     $course = mysqli_query($db, "SELECT coursecode From course");  // Use select query here 

      while($data = mysqli_fetch_array($course))
       {
             echo "<option value='". $data['coursecode'] ."'>" .$data['coursecode'] ."</option>";  // displaying data in option menu
         }  
?>
</select>

to display the values of "course" table to my dropdown and it works successfully. Now, I want to display the values of the "course" table to textfields. Someone should help me please.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda