No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Can Someone help me to solved my problem. How to count total of value base on dropdown? for example <label for="gender">Gender</label> <select name="gender" id="dr" > <option value="" selected="selected">Select Your Gender</option> <option value="M">Male</option> <option value="F">Female</option> </select> Than i want to know how many record in the database contains Male/Female. This Record … |
|
i have a problem to count explode function, here is my coding [CODE] <?php $query = "SELECT Indication, COUNT(Indication) FROM reg WHERE Indication IS NOT NULL AND Indication != '' GROUP BY Indication"; $result = mysql_query ($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $medic = explode(",", $row['Indication']); for($i = 0; $i … |