} else { if ($key == "Minimum Price") { print_table_row($key, '$' . number_format($var, 2)); } else { print_table_row($key, $var); } } } } } print_table_row("Current Bid", '$' . number_format($max_bid, 2)); set_up_end_table_echo(); } else { set_up_table_echo(); foreach ($item as $key => $var) { print_table_row($key, $var); } set_up_end_table_echo(); } ?> <form method="post" id="buttons_form" name="buttons_form" action=<?php echo htmlspecialchars($_SERVER["PHP_SELF"] . '?product_id=' . $item_id); ?> > <input type="hidden" name="item_id" value = <?php echo $item_id; ?> > <?php /// add buy it now button if there is a buy-it-now price
<?php function print_table_start($farg) { echo "<table style=\"background-color:{$farg}\">"; } function print_table_row($cell1, $cell2) { echo "<tr>\n <td>{$cell1}</td><td>{$cell2}</td>\n </tr>"; } function print_table_end() { echo "</table>"; } ?> <!DOCTYPE html> <html lang="sv"> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href=""> </head> <body> <?php print_table_start("red"); print_table_row("Fredag", "Lördag"); print_table_end(); ?> </body> </html>