if ($_GET['account']) {
?>
| Date of Transaction |
From / Paid To |
Comment |
Transaction Method |
Deposit or Withdrawl |
Transaction Amount |
Updated Balance |
include('include/connect.php');
$result = mysql_query("select * from transactions where id = ".$_GET['account']."") or die(mysql_error());
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$deposit=$r["deposit"];
$comment=$r["comment"];
$name=$r["name"];
$type=$r["type"];
$amount=$r["amount"];
$date=$r["date"];
$balance=$r["balance"];
?>
|
|
|
|
|
|
|
}
?>
}
else {
?>
Which account would you like to view?
include('include/connect.php');
$gett = mysql_query("select * from transactions") or die(mysql_error());
while($g=mysql_fetch_array($gett))
{
$id=$g["id"];
$name=$g["name"];
?>
- class="link">
}
?>
}