Someone
public text v1 · immutable/* get an array of user's pm's */
function getPmInfo($username){
$q = "SELECT * FROM ".TBL_MESSAGES." WHERE sendto = '$username'";
$result = mysql_query($q, $this->connection);
/* Error occurred, return given name by default */
if(!$result || (mysql_numrows($result) < 1)){
return NULL;
}
/* Return result array */
$dbarray = mysql_fetch_array($result);
return $dbarray;
}