<--?php
$conn=mysql_query("SELECT AccountNumber,AccountName,BankName,Branch FROM tb_account") ;
while($row =mysql_fetch_array($conn)){
$myaccountnumber = $row['AccountNumber'];
$myaccountname = $row['AccountName'];
$mybankname = $row['BankName'];
$mybranch = $row['Branch'];
$myaccountnumber = $row['AccountNumber'];
$myaccountname = $row['AccountName'];
$mybankname = $row['BankName'];
$mybranch = $row['Branch'];
echo '<tr>';
echo '<td>'.$myaccountnumber.'</td>' ;
echo '<td>'.$myaccountname.'</td>';
echo '<td>'.$mybankname.'</td>';
echo '<td>'.$mybranch.'</td>';
echo'<td><a href ="delete_account.php? AccountNumber='.$myaccountnumber.'&AccountName='.$myaccountname. '&Bankname='.$mybankname.'&Branch='.mybranch.'">Delete</a></td>'; ------- ควรใส่ onclick ตรงไหนค่ะ ใส่ไม่ถูกซะที error ตลอด
echo '</tr>';
}
?>
<?php
echo $showTable;
?>
</table-->
สอบถาม java การใส่ยืนยัน onclick ในส่วน delete หน่อยค่ะ
$conn=mysql_query("SELECT AccountNumber,AccountName,BankName,Branch FROM tb_account") ;
while($row =mysql_fetch_array($conn)){
$myaccountnumber = $row['AccountNumber'];
$myaccountname = $row['AccountName'];
$mybankname = $row['BankName'];
$mybranch = $row['Branch'];
$myaccountnumber = $row['AccountNumber'];
$myaccountname = $row['AccountName'];
$mybankname = $row['BankName'];
$mybranch = $row['Branch'];
echo '<tr>';
echo '<td>'.$myaccountnumber.'</td>' ;
echo '<td>'.$myaccountname.'</td>';
echo '<td>'.$mybankname.'</td>';
echo '<td>'.$mybranch.'</td>';
echo'<td><a href ="delete_account.php? AccountNumber='.$myaccountnumber.'&AccountName='.$myaccountname. '&Bankname='.$mybankname.'&Branch='.mybranch.'">Delete</a></td>'; ------- ควรใส่ onclick ตรงไหนค่ะ ใส่ไม่ถูกซะที error ตลอด
echo '</tr>';
}
?>
<?php
echo $showTable;
?>
</table-->