Hi there, am an amateur in php and am trying to build a site where one can select an option from a dropdown-list, I have managed to load from MYSQL data-table onto the selection list, every option on the list has additional information in the data-table so when the user choose an option the other info should display in the text filled and label before submission.
My problem is, the details are not displaying on text input nor the label. I used Ajax to send to html, I have tried every possible way that I could. The confusing part is, when i was loading from the database onto the select dropdown-list sometimes the language is difficult to understand when some codes work at some pages and same code won't work at some. I have watch tutorials that did the same thing but when I try mine give error, " Notice: Undefined variable: rows in"----"Notice: Trying to access array offset on value of type null in".