Fatal error: Call to a member function on a non-object in /mysite/proof.php on line 14
I am using a mysql database to get the values for proof on my payment site. I guess I have something wrong in the code and it would be great if someone could just point it out to me. Here is the file:
<?
$includes[title]="Proof Of Payments";
?>
<table class="tableStyle" style="width:100%">
<tr>
<th>Id</th>
<th>Username</th>
<th>Method</th>
<th>Amount</th>
<th>Date</th>
</tr>
<?
$sql=$Db1->query("SELECT * FROM payment_history ORDER BY dsub DESC");
while($row=$Db1->fetch_array($sql)) {
echo "<tr>
<td>".$row['id']."</td>
<td>".$row['username']."</td>
<td>".$row['accounttype']."</td>
<td>".$row['amount']."</td>
<td>".date("M.D.Y",mktime(0,0,$row['dsub'],1,1,1970))."</td>
</tr>";
}
?>
</table>
Any help is appreciated! Thanks!