Hi
i am trying to get data from db, but in while loop, first data is coming blank, let me show you
<?php
$query = "SELECT * FROM `artists` WHERE label_id = '$id' ORDER BY name";
$result = mysql_query($query);
while ($info = mysql_fetch_array($result)) {
?>
<option value="<?php echo $info['ID']; ?>"><?php echo $info['name']; ?></option>
<?php
}
?>
here first $info['ID'] data of the row is missing, $info['name'] is ok but ID is missing.
where am i wrong you think ?
thx