require("mysql_connect.php"); include("valuta/valuta.php"); $today = date("m.d.y"); $zi=date("d"); $luna=date("m"); $an=date("y"); $zi=$zi-1; $ieri=$luna.".".$zi.".".$an; //$azi $query="SELECT valoare as valuta_usd from valuta where (valuta='USD' and data='$today') "; $valoare=mysql_query($query); $sir_usd=mysql_fetch_assoc($valoare); $valoare=mysql_query("SELECT valoare as valuta_eur from valuta where (valuta='EUR' and data='$today') "); $sir_eur=mysql_fetch_assoc($valoare); $valoare=mysql_query("SELECT valoare as valuta_aur from valuta where (valuta='AUR' and data='$today') "); $sir_aur=mysql_fetch_assoc($valoare); //ieri $querya="SELECT valoare as valuta_usd from valuta where (valuta='USD' and data='$ieri') "; $valoarea=mysql_query($querya); $sir_usda=mysql_fetch_assoc($valoarea); $valoarea=mysql_query("SELECT valoare as valuta_eur from valuta where (valuta='EUR' and data='$ieri') "); $sir_eura=mysql_fetch_assoc($valoarea); $valoarea=mysql_query("SELECT valoare as valuta_aur from valuta where (valuta='AUR' and data='$ieri') "); $sir_aura=mysql_fetch_assoc($valoarea); ?>
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||