//to print the wanted part of the resultset// $result=mysql_query($query,$result); echo mysql_result($result,1);