Emmanuel A
Junior Member
- Feb 19, 2018
- 118
- 47
Actually am not a pro in PHP and at times i run into a some crazy issue i do find hard to get a solution. here is my code
"Beneficiary Name is in the Users Table."
"Beneficiary ID is from the transfer Table"
My problem is, i don't want to output beneficiary ID but instead output the Beneficiary name.
Thanks in advance....
HTML:
$query = ("SELECT users.id, users.fname, users.lname, transfers.sender_id, transfers.beneficiary_id, transfers.amount, transfers.date_posted from transfers INNER JOIN users ON users.id=transfers.sender_id WHERE users.id='".$id."' ORDER BY transfers.date_posted DESC ");
Code:
<?php $i=1; while($row = $result->fetch_assoc()){ ?>
<tr>
<td><?= $i++ ?></td>
<td><?= $row['fname'].' '.$row['lname'] ?></td>
<td><?= $row['beneficiary_id'] ?></td>
<td><?= $row['amount'] ?></td>
<td><?= $row['date_posted'] ?></td>
</tr>
<?php } ?>
"Beneficiary Name is in the Users Table."
"Beneficiary ID is from the transfer Table"
My problem is, i don't want to output beneficiary ID but instead output the Beneficiary name.
Thanks in advance....
Last edited: