Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#63 psl_author.email Wrapper for Author.class

open
nobody
None
5
2005-05-09
2005-05-09
tobozo
No

<code>

/**
* getEmail - return email assigned to id
*
* when given an id, getEmail returns the email
*
* @param string name
* @access public
* return ail
*/

function getEmail($id) {
if (!$id) {
return false;
} else {
$id = (int) $id;
$q = "SELECT email
FROM psl_author
WHERE author_id = '$id' ";
$this->db->query($q);
$this->db->next_record();
return $this->db->f("email");
};
}

</code>

Discussion