wow, that was confusing. I'm usless at making loops.
I tried but failed, I done everything you said but missed out the [$id] and the _val in the table by accident and it gave me a list of entrys for the table just showing array() for them all.
Then I noticed I missed out the [$id] and _val, so I added them in and just got a white screen. 🙁
Ill get there eventually.
heres what I put
$IEntryRW = array();
$IEntryValue = array();
$IEntryID = array();
$IEntryDate = array();
$IEntryName = array();
$TEntryRW = array();
$TEntryValue = array();
$TEntryID = array();
$TEntryDate = array();
$TEntryName = array();
$NoOfEntries=false;
$SQL1 = "SELECT * FROM Entry WHERE UserID = '$userID' AND EntryAdjustment IS NULL AND (EntrySelect=4 AND (EntryBalanceSheet=1))";
$result1 = mysql_query($SQL1) or die(mysql_error());
$num_rows = mysql_num_rows($result1);
if ($num_rows > 0 )
{
$NoOfEntries=true;
while($row = mysql_fetch_array($result1))
{
if (EntrySelect==4 && EntryBalanceSheet==1);
{
$IEntryRW[] = $row['EntryRW'];
$IEntryValue[] = $row['EntryValue'];
$IEntryID[] = $row['EntryID'];
$IEntryDate[] = $row['EntryDate'];
$IEntryName[] = $row['EntryName'];
$Isheetinfo = $row['EntryBalanceSheet'] =="1" ? "Intangible" : "Tangible";
$ITotal= $ITotal + $IEntryValue;
if ($IEntryRW==0)
{
$IEntryValue = "-". $IEntryValue;
}
}
}
}
<?php
foreach($IEntryRW as $id => $$IEntryID_val)
{
?>
<tbody>
<tr>
<td><?php echo $IEntryID_val ?></td>
<td><?php echo $IEntryDate[$id] ?></td>
<td><?php echo $IEntryName[$id] ?></td>
<td><?php echo $Isheetinfo[$id] ?></td>
<td><?php echo '£'. number_format(($IEntryValue[$id]),2,".",",")?></td>
<td></td>
<td><?php printf('<a href="FixedAssetAddRate.php?id=%d&action=Add"><img title="Add Depreciation Rate" src="css/button/plus.png"/></a>', $IEntryID[$id]);?>
<td>
<td><?php '£'. number_format(($IEntryValue[$id]),2,".",",")?> </td>
<td><?php printf('<a href="FixedAssetView.php?id=%d&action=view"><img title="View This Fixed Asset" src="css/button/view.png"/></a>', $IEntryID[$id]);?>
<td><?php printf('<a href="AccountEntry.php?ID=%d"><img title="Edit This Fixed Asset" src="css/button/edit.png"/></a>', $IEntryID[$id]);?>
</tr>
<?php }?>
</tbody>
regards
Michael