Hi,
First, make sure that field id is indexed. If it is,then you should go
Code:
mysql_query("SELECT * FROM tracks WHERE id=1");
Next, you don't need to enter a while loop to get one row. Just go,
Code:
$row = mysql_fetch_array($selection);
Next, the way you are calling fetch_array actually returns two arrays. Since you just want to reference the array by field name, do this:
Code:
$row = mysql_fetch_array($selection, MYSQL_ASSOC);
And finally, once you have something stored in $row, you can access it as many times as you want on your page.
Code:
<?
$row = mysql_fetch_array($selection, MYSQL_ASSOC);
echo $row['name']
?>
Some html...
<?=$row['artist'] ?>
Some more html
<?=$row['genre'] ?>
And so on