Oh, giusto, è un recordset...

invece del print_r metti

while ($row = mysql_fetch_assoc($result))
{
print_r($row);
}