I want retrieve data from mysql database and store in an array. Later I would display the data in html.
Below is my code snippet:
select co_no from faculty_co where course_code='$course1_code';
The output will display a total 5 co_no values. I want to store this values in an array and display as dropdown menu in html using select tag.
I am new to php. Please tell me how do I retrieve and store it.