PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Jul 21, 2019 2:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Mar 22, 2017 9:19 am 
Offline
Forum Newbie

Joined: Wed Mar 22, 2017 9:02 am
Posts: 1
Hi friends, i want to change this code from Doller bitcoin to Naira bitcoin rate. Please i need help.
Thanks all!


Syntax: [ Download ] [ Hide ]
//*********************************************************************************
// PAIRING SETTING
//*********************************************************************************

if($pairingsistem == "1"){

$skrg=time();
$tablaz = mysql_query("SELECT * FROM tb_gh where saldo >'0' and status='pending' and jenis!='9' order by rand() limit 0,1");
while ($registroz = mysql_fetch_array($tablaz)) {
$kurirz=$registroz["username"];
$biayaz=$registroz["saldo"];
$idnyaz=$registroz["id"];
$bankeem=$registroz["bank"];
$norekeem=$registroz["norek"];
$bitcoineem=$registroz["bitcoin"];
$pmeem=$registroz["perfectmoney"];
$fasapayeem=$registroz["fasapay"];
$namaeem=$registroz["nama"];
$phoneeem=$registroz["phone"];
$emaileem=$registroz["email"];
$paketzeem=$biayaz*$pecahan;
$surabaya=$paketzeem/$pecahan;

$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;


$tabla = mysql_query("SELECT * FROM tb_ph where status='pending' and username!='$kurirz' and saldo > '0' and jenis!='9' ORDER by id ASC limit 0,1");
while ($registro = mysql_fetch_array($tabla)) {
$kuriree=$registro["username"];
$biayaee=$registro["saldo"];
$idnyaee=$registro["id"];
$bankee=$registro["bank"];
$norekee=$registro["norek"];
$bitcoinee=$registro["bitcoin"];
$pmee=$registro["perfectmoney"];
$fasapayee=$registro["fasapay"];
$namaee=$registro["nama"];
$phoneee=$registro["phone"];
$emailee=$registro["email"];
$mangkosim=$registro["upline"];
$paketzee=$biayaee*$pecahan;
$surabayae=$paketzee/$pecahan;
if($biayaee > $biayaz){ $hasileksekusi="0";} else
if($biayaee < $biayaz){ $hasileksekusi="1";} else
if($biayaee == $biayaz){ $hasileksekusi="2";}
$da=date("m");
$daek = date("j");
$waktutt=$expph;
$eltiempo=time();
$exp=$eltiempo+$waktutt;
$dilockezqee=$lockph;
$unikee=rand(111,999);

function acakwedok($panjang)
{
        $karakter= '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $string = '';
        for ($i = 0; $i < $panjang; $i++) {
                $pos = rand(0, strlen($karakter)-1);
                $string .= $karakter{$pos};
        }
        return $string;
}
$unikeef=acakwedok(12);

$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc2=$paketzee / $rate;

if($hasileksekusi == "0"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec, bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang','$bitcoinee', '$pmee', '$fasapayee', '$paketzeem', '$surabaya', '$convertbtc1', '$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec, bitcoin, perfectmoney, fasapay,  paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzeem', '$surabaya', '$convertbtc1','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabaya' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabaya' where id='$idnyaz'") or die(mysql_error());
} else

if($hasileksekusi == "1"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang', '$bitcoinee', '$pmee', '$fasapayee', '$paketzee', '$surabayae', '$convertbtc2','$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzee', '$surabayae', '$convertbtc2','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabayae' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabayae' where id='$idnyaz'") or die(mysql_error());

} else

if($hasileksekusi == "2"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang','$bitcoinee', '$pmee', '$fasapayee', '$paketzee', '$surabayae', '$convertbtc2','$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzee', '$surabayae', '$convertbtc2','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabayae' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabayae' where id='$idnyaz'") or die(mysql_error());

}
else {}
}}}

else {

if($pairingsistem == "2"){

$skrg=time();
$tablaz = mysql_query("SELECT * FROM tb_gh where saldo >'0' and status='pending'  and jenis!='9' order by rand() limit 0,1");
while ($registroz = mysql_fetch_array($tablaz)) {
$kurirz=$registroz["username"];
$biayaz=$registroz["saldo"];
$idnyaz=$registroz["id"];
$bankeem=$registroz["bank"];
$norekeem=$registroz["norek"];
$bitcoineem=$registroz["bitcoin"];
$pmeem=$registroz["perfectmoney"];
$fasapayeem=$registroz["fasapay"];
$namaeem=$registroz["nama"];
$phoneeem=$registroz["phone"];
$emaileem=$registroz["email"];
$paketzeem=$biayaz*$pecahan;
$surabaya=$paketzeem/$pecahan;
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$tabla = mysql_query("SELECT * FROM tb_ph where status='pending' and username!='$kurirz' and saldo > '0'  and jenis!='9'  ORDER by rand() limit 0,1");
while ($registro = mysql_fetch_array($tabla)) {
$kuriree=$registro["username"];
$biayaee=$registro["saldo"];
$idnyaee=$registro["id"];
$bankee=$registro["bank"];
$norekee=$registro["norek"];
$bitcoinee=$registro["bitcoin"];
$pmee=$registro["perfectmoney"];
$fasapayee=$registro["fasapay"];
$namaee=$registro["nama"];
$phoneee=$registro["phone"];
$emailee=$registro["email"];
$mangkosim=$registro["upline"];
$paketzee=$biayaee*$pecahan;
$surabayae=$paketzee/$pecahan;
if($biayaee > $biayaz){ $hasileksekusi="0";} else
if($biayaee < $biayaz){ $hasileksekusi="1";} else
if($biayaee == $biayaz){ $hasileksekusi="2";}
$da=date("m");
$daek = date("j");
$waktutt=$expph;
$eltiempo=time();
$exp=$eltiempo+$waktutt;
$dilockezqee=$lockph;
$unikee=rand(111,999);

function acakwedok($panjang)
{
        $karakter= '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $string = '';
        for ($i = 0; $i < $panjang; $i++) {
                $pos = rand(0, strlen($karakter)-1);
                $string .= $karakter{$pos};
        }
        return $string;
}
$unikeef=acakwedok(12);

$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc2=$paketzee / $rate;

if($hasileksekusi == "0"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec, bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang','$bitcoinee', '$pmee', '$fasapayee', '$paketzeem', '$surabaya', '$convertbtc1','$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec, bitcoin, perfectmoney, fasapay,  paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzeem', '$surabaya', '$convertbtc1','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabaya' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabaya' where id='$idnyaz'") or die(mysql_error());
} else

if($hasileksekusi == "1"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang', '$bitcoinee', '$pmee', '$fasapayee', '$paketzee', '$surabayae', '$convertbtc2','$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzee', '$surabayae', '$convertbtc2','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabayae' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabayae' where id='$idnyaz'") or die(mysql_error());

} else

if($hasileksekusi == "2"){
$api = "https://blockchain.info/ticker";
$json = file_get_contents($api);
$data = json_decode($json, TRUE);
$rate = $data["USD"]["15m"];
$symbol = $data["USD"]["symbol"];
$convertbtc1=$paketzeem / $rate;
$convertbtc2=$paketzee / $rate;
$queryteryoked = "INSERT INTO tb_beli (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, referer, iddb, date, ip, exp, unik,idph, upline, token)
VALUES('$kuriree','$bankee','$norekee','$namaee','$matauang','$bitcoinee', '$pmee', '$fasapayee', '$paketzee', '$surabayae', '$convertbtc2','$phoneee', '$emailee', 'pending', '$kurirz', '$idnyaz', '$skrg', '$laip', '$exp','$unikee','$idnyaee','$mangkosim','$unikeef')"
;
mysql_query($queryteryoked);

$queryteryokedi = "INSERT INTO tb_jual (username, bank, norek, nama, ec,  bitcoin, perfectmoney, fasapay, paket, saldo, amountbtc, phone, email, status, date, ip, idgh, token)
VALUES('$kurirz','$bankeem','$norekeem','$namaeem','$matauang','$bitcoineem', '$pmeem', '$fasapayeem', '$paketzee', '$surabayae', '$convertbtc2','$phoneeem', '$emaileem', 'tunggu transfer', '$skrg', '$laip', '$idnyaz','$unikeef')"
;
mysql_query($queryteryokedi);

mysql_query("UPDATE tb_ph SET saldo=saldo-'$surabayae' where id='$idnyaee' ") or die(mysql_error());
mysql_query("UPDATE tb_gh SET saldo=saldo-'$surabayae' where id='$idnyaz'") or die(mysql_error());

}
else {}
}}}

}





Please help me with it.


Attachments:
BTC to NAIRA.png
BTC to NAIRA.png [ 194.33 KiB | Viewed 2530 times ]


Last edited by Celauran on Wed Mar 22, 2017 11:52 am, edited 1 time in total.
Please use syntax tags to wrap your code.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group