1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?php include_once("./lib/common.inc.php"); include_header("Contract"); $query = sprintf("SELECT * FROM `contractnotice` WHERE CNID = '%d'", mysql_real_escape_string($_REQUEST['CNID'])); $result = mysql_query($query); echo "<pre>"; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { setlocale(LC_MONETARY, 'en_US'); $value = number_format(doubleval($row['value']),2); echo(print_r(array_filter($row),true)); } echo "</pre>"; echo '<a href="https://www.tenders.gov.au/?event=public.advancedsearch.keyword&keyword=CN'.$_REQUEST['CNID'].'"> View original record @ tenders.gov.au</a>'; mysql_free_result($result); include_footer(); ?> |