good day.!
I am currently developing an enrolment system which will be on february 12-13 the deadline. In the middle of development, the client wants that on every link the pop-up info to be display on that link will be from the mysql database. Assuming that i already have a connection to mysql and i have a table could linkinfo. The flow should like like this:
First Year
Math Matranillo Cawite
Science Nancy Divincio
Second Year
Math Doromal Tancio
Science Davis Leo
When the client clink on the first year link, the the Math and Science Info with the corresponding teachers will be displayed which is from the database. And when the user click second year, the popinfo of first year will disappear then it will show the popup info of second year. I have a code of this situation from a forum that reply to my thread last month but its not from the database. Here is the code:
<div class='year'>
<a href='#' onfocus="showIt('firstyear');" onclick="showIt('firstyear');" onblur="hideIt('firstyear');" taborder=1>First Year</a> <!-- onfocus onclick allows for keyboard tab as well as mouseclick-->
<div id='firstyear' style='visibility:hidden'> <!-- initially invisible -->
<input type='checkbox' value='filipino'>filipino<br>
<input type='checkbox' value='math'>math<br>
<input type='checkbox' value='sci'>science<br>
</div></div>
<div class='year'>
<a href='#' onfocus="showIt('secondyear');" onclick="showIt('secondyear');" onblur="hideIt('secondyear');" taborder=2>second Year</a>
<div id='secondyear' style='visibility:hidden'>
<input type='checkbox' value='filipino'>2filipino<br>
<input type='checkbox' value='math'>2math<br>
<input type='checkbox' value='sci'>2science<br>
</div></div>
pls help me. Im not really a good php programmer. In fact i am eager to learn from the experts. I dont have any reliable source about this problem. My expertise is vb6.
I would say a big thank you and God bless for helping me on this.