Bitcoin Venezuela Prices App

1VenCBSjJWDi6PDgEDppZzXsNWHiwitzT
Bitcoin   Litecoin   Mastercoin"; $back_top = "   "; require_once('../../config.php'); $connection = mysqli_connect($db_server, $db_user, $db_password, $db_database); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $q = "SELECT * FROM `$db_table_historical` ORDER BY `date` DESC"; $result = mysqli_query($connection, $q); if (!$result){ echo 'error in database'; } else { if ($set_coin != "BTC" && $set_coin != "") { } else { mysqli_data_seek($result, 0); echo "
". $menu.($set_coin == "BTC" ? "   All coins   Current prices" : "   Current prices")."

Bitcoin

"; while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){ list($date, $item1) = explode(" ", $row['date']); if ($row['usdbitcoin'] == "" && $row['eurbitcoin'] == "" && $row['vefbitcoin'] == "" && $row['arsbitcoin'] == "") { } elseif ($date != $_SESSION['date']) { if (isset($row['usdbitcoin']) && $row['usdbitcoin'] != "" && $row['usdbitcoin'] != 0){ if ($set_coin != "BTC" && $set_coin != "") { } else { echo ""; echo "". ""; } } else { echo ""; } if (isset($row['eurbitcoin']) && $row['eurbitcoin'] != "" && $row['eurbitcoin'] != 0){ if ($set_coin != "BTC" && $set_coin != "") { } else { echo ""; } } else { echo ""; } if (isset($row['vefbitcoin']) && $row['vefbitcoin'] != "" && $row['vefbitcoin'] != 0){ if ($set_coin != "BTC" && $set_coin != "") { } else { echo ""; } } else { echo ""; } if (isset($row['arsbitcoin']) && $row['arsbitcoin'] != "" && $row['arsbitcoin'] != 0){ if ($set_coin != "BTC" && $set_coin != "") { } else { echo ""; } } else { echo ""; } echo ""; } // if/else empty $_SESSION['date'] = $date; } // while echo "
Date USD EUR VEF ARS
".$date."".ReplaceDot(str_replace(',', '', $row['usdbitcoin']))."".ReplaceDot(str_replace(',', '', $row['eurbitcoin']))."".ReplaceDot(str_replace(',', '', $row['vefbitcoin']))."".ReplaceDot(str_replace(',', '', $row['arsbitcoin']))."
"; } // if coin //-- if ($set_coin != "LTC" && $set_coin != "") { } else { mysqli_data_seek($result, 0); echo "
". $menu.($set_coin == "LTC" ? "   All coins   Current prices" : $back_top)."

Litecoin

"; while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){ list($date, $item1) = explode(" ", $row['date']); if ($row['usdlitecoin'] == "" && $row['eurlitecoin'] == "" && $row['veflitecoin'] == "" && $row['arslitecoin'] == "" && $row['litecoin'] == "") { } elseif ($date != $_SESSION['date']) { if (isset($row['usdlitecoin']) && $row['usdlitecoin'] != "" && $row['usdlitecoin'] != 0){ echo ""; echo "". ""; } else { echo ""; } if (isset($row['eurlitecoin']) && $row['eurlitecoin'] != "" && $row['eurlitecoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['veflitecoin']) && $row['veflitecoin'] != "" && $row['veflitecoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['arslitecoin']) && $row['arslitecoin'] != "" && $row['arslitecoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['litecoin']) && $row['litecoin'] != "" && $row['litecoin'] != 0){ echo ""; } else { echo ""; } echo ""; } // if/else empty $_SESSION['date'] = $date; } // while echo "
Date USD EUR VEF ARS BTC
".$date."".ReplaceDot(str_replace(',', '', $row['usdlitecoin']))."".ReplaceDot(str_replace(',', '', $row['eurlitecoin']))."".ReplaceDot(str_replace(',', '', $row['veflitecoin']))."".ReplaceDot(str_replace(',', '', $row['arslitecoin']))."".Crypto(str_replace(',', '', $row['litecoin']))."
"; } // if coin //--- if ($set_coin != "MSC" && $set_coin != "") { } else { mysqli_data_seek($result, 0); echo "
". $menu.($set_coin == "MSC" ? "   All coins   Current prices" : $back_top)."

Mastercoin

"; while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){ list($date, $item1) = explode(" ", $row['date']); if ($row['usdmastercoin'] == "" && $row['eurmastercoin'] == "" && $row['vefmastercoin'] == "" && $row['arsmastercoin'] == "" && $row['mastercoin'] == "") { } elseif ($date != $_SESSION['date']) { if (isset($row['usdmastercoin']) && $row['usdmastercoin'] != "" && $row['usdmastercoin'] != 0){ echo ""; echo "". ""; } else { echo ""; } if (isset($row['eurmastercoin']) && $row['eurmastercoin'] != "" && $row['eurmastercoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['vefmastercoin']) && $row['vefmastercoin'] != "" && $row['vefmastercoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['arsmastercoin']) && $row['arsmastercoin'] != "" && $row['arsmastercoin'] != 0){ echo ""; } else { echo ""; } if (isset($row['mastercoin']) && $row['mastercoin'] != "" && $row['mastercoin'] != 0){ echo ""; } else { echo ""; } echo ""; }// if/else empty $_SESSION['date'] = $date; } // while echo "
Date USD EUR VEF ARS BTC
".$date."".ReplaceDot(str_replace(',', '', $row['usdmastercoin']))."".ReplaceDot(str_replace(',', '', $row['eurmastercoin']))."".ReplaceDot(str_replace(',', '', $row['vefmastercoin']))."".ReplaceDot(str_replace(',', '', $row['arsmastercoin']))."".Crypto(str_replace(',', '', $row['mastercoin']))."
"; //--- } // if coin } // else -- no database errors mysqli_close($connection); ?>