0) { echo ''; echo ''; while ($row = mysqli_fetch_array($result)) { $from_id = $row['from_currency']; $to_id = $row['to_currency']; $send_row = mysqli_fetch_array(smart_mysql_query("SELECT * FROM exchangerix_currencies WHERE currency_id='$from_id' LIMIT 1")); $receive_row = mysqli_fetch_array(smart_mysql_query("SELECT * FROM exchangerix_currencies WHERE currency_id='$to_id' LIMIT 1")); if ($send_row['xml_code'] != "") $send_code = $send_row['xml_code']; else $send_code = $send_row['currency_code']; if ($send_row['xml_code'] != "") $receive_code = $receive_row['xml_code']; else $receive_code = $receive_row['currency_code']; $minamount = $row['min_amount']." ".$send_code; $maxamount = $row['max_amount']." ".$send_code; if ($send_code != "" && $receive_code != "") { $ex_url = SITE_URL."exchange.php?currency_send=".$from_id."&currency_receive=".$to_id; $year = substr($row['added'],0,4); $month = substr($row['added'],5,2); $day = substr($row['added'],8,2); $i_date = ''.$year.'-'.$month.'-'.$day.''; echo ' '.$send_code.' '.$receive_code.' '.floatval($row['from_rate']).' '.floatval($row['to_rate']).' '.GetCurrencyReserve($row['to_currency']).' '; if ($row['min_amount'] != "") echo ''.$minamount.''; if ($row['max_amount'] != "") echo ''.$maxamount.''; echo ' '.$ex_url.' '; } } echo ''; } ?>