Alright so I have three kingdoms in my game and I want to be able to attack them. Heres what ive got in code for the page.
[code]<?php
require (“header.php”);
$kingdom = $pvar[‘ckingdom’];
$result = mysqli_query($conn, “SELECT * FROM kingdom”);
$result1 = mysqli_query($conn, “SELECT * FROM kingdom WHERE kname = ‘$kingdom’”);
echo "
Id | Kingdom | Attack |
---|---|---|
” . $row[‘id’] . “ | ”;” . $row[‘kname’] . “ | ”;
?>[/code]
What I am wanting to do is make the attack button represent the kingdom to the left. So it should essentially look like this
id Kingdom Attack
1 Barmosa Attack
2 Traviso Attack
where in the third column attack is clickable and represent the kingdom to the left only. I have no clue how to even begin to do this. Can anyone give me suggestions?