-2
(this select is an example) Well I have a select here that will serve to send an email with phpmailer. I want to know how I can do so that in this select appear only the emails registered in my "database" inside the table "teacher". E-mail is a teacher attribute. If you need more information just say.
<div class="input-field col s12">
<select>
<option value="" selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<label>email</label>
</div>
Favour edit your question, because in the way you are you can’t understand anything. Use of that link to base.
– Don't Panic
It’s better this way?
– Jadson Alves
And the teacher table has what fields? idProfessor, nomProfessor and so on? Will pass this information from PHP to HTML via AJAX or has PHP along with HTML
– Don't Panic
fields name, sex, campus, email, password, training. PHP usage along with HTML.
– Jadson Alves
which column name contains the emails?
– user60252
Table teacher column email.
– Jadson Alves
see the answer if it is easier to understand and take the test
– user60252
I made a correction in the answer, I think it was very easy for you to understand
– user60252
I am not saying that it should be my answer to accept, but read this post https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252