<?php
Class MessageInfo {
protected $postingID;
protected $postingInfoObj;
function __construct($postingID) {
$this->postingInfoResource = mysql_query("SELECT * FROM Postings WHERE id='$postingID' LIMIT 1");
$postingInfoObj = mysql_fetch_object($this->postingInfoResource);
$this->postingName = $postingInfoObj->name;
}
}
?>