samedi 7 février 2015

How to create loop query in php?


Vote count:

0




Now this is the scenario i have voting system in php. so i want to display the candidates based on the organization so after that if the voters log in to the system based on there organization. just comparison of org_id.


this is my sample query.



$result = mysql_query("SELECT * FROM candidates WHERE position='President' and org_name='IntOrg'");


now the question is how to loop a query to select and depends on the org_id of candidates.



asked 15 secs ago







How to create loop query in php?

Aucun commentaire:

Enregistrer un commentaire