ok heres my problem in my script im using buttons to allow a user to buy something but im having a problem where the buttons insist on sitting on and under the table not inteh table and i cant understand heres my code:
<html>
<title>
Global European Employee Shop
</title>
<body>
<h1>Welcome To The Shop</h1>
<br><br><br>
<table border=1 cellpadding=2 cellspacing=0><tr><th width="48">Item ID</th><th>Item Name</th><th>Item Price</th><th>Item Image</th><th>Purchase?</th></tr>
<?php
mysql_select_db("$DBName", $conn) or die("Unable to select
database $DBName");
$id = $_POST['id'];
$pssword = md5($_POST['pword']);
$temp = mysql_query("SELECT * FROM pilotinfo WHERE id = '$id' AND pwrd = '$pssword'",$conn)
or die("didnt work");
$row = mysql_fetch_array($temp)or die("We are sorry but either the name you entered doesn't match your record on our server (check the roster) or we have no record of that name on the server");
mysql_close();
$code = $row['regcode'];
$string1 = "Your Current Account Balance Stands at <b>v£</b>";
$string2 = $row['funds'];
print($string1."<b>$string2</b>");
$num = mysql_num_rows($temp);
if ($num == 1)
{
$shopquery = mysql_query("SELECT * FROM shopitems",$conn)
or die (mysql_error());
}
while($shoprow = mysql_fetch_array($shopquery)) {
extract ($shoprow);
if ($string2 < $itemprice)
{
$buy = print("<input type=\"button\" name=\"order\" value=\"order\">");
}
else
{
$buy = print("<input type=\"button\" name=\"order\" value=\"order\" disabled=\"disabled\">");
}
echo("<tr><td>$itemid</td><td>$itemname</td><td>£$itemprice</td><td>$itemimage</td><td>$buy</td></tr>");
}
echo("</table>");
?>
</body>
</html>