Stuff
public text v1 · immutablefunction ListPms($uid){
$q = "SELECT * FROM ".TBL_MESSAGES." WHERE to = '$uid'";
$result = mysql_query($q);
/* Error occurred, return given name by default */
if(!$result || (mysql_numrows($result) < 1)){
return NULL;
}
/* Return result array */
$pmarray = mysql_fetch_array($result);
return $pmarray;
}