Ive sorted it now, using fetch:
<?php
mysql_connect ($host, $user, $pass)
or die ('I cannot connect to the database. Make sure that mysql is installed and that you are trying to log in as a valid user.');
mysql_select_db ("$Name")
or die ('The database specified in database_name must exist and must be accessible by the user specified in mysql_connect');
$query = "SELECT * FROM $table";
$query_result_handle = mysql_query ($query)
or die ('The query failed! table_name must be a valid table name that exists in the database specified in mysql_select_db');
$num_of_rows = mysql_num_rows ($query_result_handle)
or die ("The query: '$query' did not return any data");
//print "The query: '$query' returned $num_of_rows rows of data.";
for ($count = 1; $row = mysql_fetch_row ($query_result_handle); ++$count)
{
print "
";
print "$row[0] , ";
}
?>
This just prints all the values in row 0, which is the username here.
Ta