im tring to display the out put of my query in a form, while my loop condition is true. but i get a parse error. im trying to have the order output disply the order no in the value. this is so when the form is posted i can recall value that as submitted.
<?php
$query = "SELECT * FROM orders " .
"WHERE order_status = 'Pending' " .
" AND username = '" . $_SESSION['username'] . "' " ;
echo $query;
$result = mysql_query($query)
or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
extract ($row);
echo "<form action='update_orders.php' method='post'>
Order ID: <input type='text' name='orderid'
value=". echo $row['orderid'] .">
<input type='submit' name='submit' value='change'>
<input type='button' value='Cancel' onClick='history.go(-1);'>
</form>";
}
?>