I have a function to calculate some mathmatic, but it seems like it wont put into database...
Is there something i dont know or?
function overskud($odds, $indskud) {
$overskud1 = $indskud * $odds;
$overskud2 = $overskud1 - $indskud;
echo "$overskud2";
}
$overskud = overskud($odds, $indskud);
mysql_query("INSERT INTO ODDS_kupon (kamp,odds,indskud,overskud,resultat,af,dato_ar,dato_moned,dato_dag) VALUES ('$kamp', '$odds', '$indskud', '$overskud2', '0', '$profilid', '$datoar', '$datomoned', '$datodag')");