Loading data from database with php and pure ajax in a textbox

前端 未结 2 1084
感动是毒
感动是毒 2021-01-17 08:08

i have one dropdown list which has data for \"subjects\" loaded from database. when i clicked on one subject what it should do is load related \"subject_id\" value inside te

2条回答
  •  不思量自难忘°
    2021-01-17 08:30

    Your subject_id is not displaying because you have not printed your book_id after fetching results from database in getbook.php

    After this $result=mysql_query($sql);

    Write echo $result['your_book_id_field_name'];

提交回复
热议问题