Hi
Im trying to output data from the bio column of a table named bios in MySQL...

Code:
<?

// open a connection to the database
mysql_connect($server, $user, $pass) or die("Invalid server or user");
mysql_select_db($db);

$getartistbio = mysql_query("SELECT bio FROM bios WHERE artistid='$artist'");
if (!$getartistbio)
{
	echo "There was an error fetching the artist's ('$artist') biography as explained by:<br>";
	mysql_error();
	echo "<br><br>Please send an email to <a href=\"mailto:jordan@hotmusicstars.com?subject='$artist'+Biography+Error&body=" .
	mysql_error() .
	"\">jordan@hotmusicstars.com</a> with the complete error message above.";

} else {

echo $getartistbio;

}
?>
the variable $artist comes from the query string (bios.php?artist=artistnamehere)
the output i get for that section is:
"Resource id #2"
(without the quotes)

Could someone please tell me what I'm doing wrong???