i am a new to php, am trying to get the code below to work - i am getting it is returning resource id#14
Please bail me out
file 1
<table>
<tr>
<td width="245" class="style8"><?php
echo "<b>".$database->getLastPoems()."</b>";
// Echoes: string
echo $result;
?></td>
</tr>
</table>
file 2
function getLastPoems(){
$q = "SELECT title FROM". TBL_POEMS. "LIMIT 0,10";
$result = mysql_query($q, $this->connection);
if ($result)
{
$row = mysql_fetch_assoc($result);
$referral = $row['title'];
mysql_free_result($result);
}
return ($result);
}