I have the following PHP code:
<select name="location" id="shortdescription">
<?php
$query = "SELECT loc_short_desc FROM location_surface_type";
$results=mysqli_query($link, $query);
foreach ($results as $loc_short_desc){
?>
<option value="<?php echo $loc_short_desc["loc_short_desc"];?>"><?php echo $loc_short_desc["loc_short_desc"];?></option>
<?php
}
?>
</select>
But when on my test host-(WAMP), my for loop works out perfectly. But when I am using my actual host-(Fatcow.com), it doesn’t display anything except for the select box. Do you have any suggestions on how to possibly fix this issue?