kashif Posted February 22, 2010 Share Posted February 22, 2010 Dear all, I am trying to fetch data from MySQL using a multiple select drop down menu on a htm page. I use the follwing code: <select name="indicator[]" size="6" multiple> The multiple selections of 'indicators' (e.g. A, B, C) are then sent using the POST method to a php page. I think that I would have to use following code for making query: $name = $_POST["indicator"]; $query= "SELECT * FROM table WHERE where name = '$name'"; $result = mysql_query($query); But I do not know how to show the results. Please help me. Best regards, Kashif. Link to comment https://forums.phpfreaks.com/topic/192974-retrieving-data-from-mysql-using-multiple-select-drop-down-menu/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.