it was suppose to do that.
look at this lines
$result = $Connection->_GetResults("select fname,lname from tblNames");
?>
to do it properly rewrite _GetResults as below:
public function _GetResults($query)
{
$array = array();
$result = mysql_query($query);
if(!$result)
{
die('Invalid query: ' .mysql_error());
}
return $result;
}
also change the while loop as below:
while(($row=mysql_fetch_assoc($result))
{
echo "<tr>";
echo "<td>".$row["fname"]."</td>";
echo "<td>".$row["lname"]."</td>";
echo "</tr>";
}
mysql_free_result($result);