$result = mysql_query("SELECT * FROM link ORDER BY id ASC"); if ($x=mysql_fetch_array($result)) {
$blah = $x['nameofrow'];