genzedu777 Posted October 10, 2010 Share Posted October 10, 2010 Hi, Could anyone tell me if there is anything wrong with my code? Will this code clashed, since i call for $data['district_id'] & $data['district_name'] <label for="'.$data['district_id'].'">'.$data['district_name'].'</label>'; <?php $sql = mysqli_query("SELECT * FROM tutor_preferred_district ORDER BY district_id ASC"); while($data = mysql_fetch_array($sql)) { echo '<input name="district" type="checkbox" id="'.$data['district_id'].'" value="'.$data['district_id'].'"> <label for="'.$data['district_id'].'">'.$data['district_name'].'</label>'; } ?> Link to comment https://forums.phpfreaks.com/topic/215545-need-some-help-in-this-code/ Share on other sites More sharing options...
Pikachu2000 Posted October 10, 2010 Share Posted October 10, 2010 What happened when you tried it? Did it work? Link to comment https://forums.phpfreaks.com/topic/215545-need-some-help-in-this-code/#findComment-1120788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.