include ('top.php') ;?> $lit=1936.27; include('admin/config.php'); if($offline=='si') { $usd=0.898; } else {$file = fopen("/home/mhd/montepulciano/htdocs/admin/usd.dat",'r+'); $usd = fread($file,filesize("/home/mhd/montepulciano/htdocs/admin/usd.dat")); fclose($file); } $sql="select * from prezzi"; if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from prezzi table.\n"); }else{ while ($datarecord=mysql_fetch_row ($result)) { $prezzo[$datarecord[0]]=$datarecord[2]; $prezzo[$datarecord[0]]=str_replace(".",",",$prezzo[$datarecord[0]]); $prezzod[$datarecord[0]]=round($datarecord[2]*$usd,2); $prezzod[$datarecord[0]]=str_replace(".",",",$prezzod[$datarecord[0]]); $prezzol[$datarecord[0]]=round($datarecord[2]*$lit,0); $prezzol[$datarecord[0]]=str_replace(".",",",$prezzol[$datarecord[0]]); } echo "\n"; } mysql_close($conn); ?>
RICHIESTA INFORMAZIONI
|