stealth_unknown
Honorary Poster
- Joined
- Sep 12, 2016
- Posts
- 337
- Reaction
- 70
- Points
- 128
Good day mga bossing patulong naman. Sino po yung may alam regarding sa PHP coding.. ito po yung code ko..
this is my code:
<div id="Restarter" class="colors6" style="display:none">
<label>Previous Method <font color = "red" size = "1"> <i>Required</i></font></label>
<?php $fplist = mysql_query("SELECT * from listoffpmethod"); ?>
<select id = "unmet_prevmethod1" class="form-control" >
<option value = "">Please select</option>
<?php while($rowlist = mysql_fetch_row($fplist)) { ?>
<option value = "<?php echo $rowlist[1]; ?>"><?php echo $rowlist[1]; ?></option>
<?php } ?>
</select>
</div>
table name: listoffpmethod
Id - Description - Gender
1 - ***** - Female
2 - CIC - Female
3 - DMPA - Female
4 - IUD - Female
5 - ****** - Male
6 - Vasectomy - Male
output :
ang gusto ko sana kung yung gender ay male dapat ****** ang vasectomy lang ang lalabas .. din kung ang gender niya ay female dapat *****, cic and etc ang lalabas..
I hope matulong niyo sana ako mga bossing...
this is my code:
<div id="Restarter" class="colors6" style="display:none">
<label>Previous Method <font color = "red" size = "1"> <i>Required</i></font></label>
<?php $fplist = mysql_query("SELECT * from listoffpmethod"); ?>
<select id = "unmet_prevmethod1" class="form-control" >
<option value = "">Please select</option>
<?php while($rowlist = mysql_fetch_row($fplist)) { ?>
<option value = "<?php echo $rowlist[1]; ?>"><?php echo $rowlist[1]; ?></option>
<?php } ?>
</select>
</div>
table name: listoffpmethod
Id - Description - Gender
1 - ***** - Female
2 - CIC - Female
3 - DMPA - Female
4 - IUD - Female
5 - ****** - Male
6 - Vasectomy - Male
output :
ang gusto ko sana kung yung gender ay male dapat ****** ang vasectomy lang ang lalabas .. din kung ang gender niya ay female dapat *****, cic and etc ang lalabas..
I hope matulong niyo sana ako mga bossing...
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.