Use a temporary variable to check is the $name already is used


$query=("SELECT * FROM software ORDER BY name ASC, version DESC");
$result=mysql_query($query) or die('Sorry, could not get...