airbus Posted September 5, 2009 Report Share Posted September 5, 2009 (edited) Tatad gribu uztaisit lai butu ta, ja userim datubaze ir 100ls un vins grib vinus banka ielikt, bet kur jaliek banka vins ievada summu 500 vai vairak par 100 un kads skripts jaliek lai vairak pa 100ls neliek banka. Un otrs jautajums, ka uztaisa kad banka liek nonem no naudas 5% Edited September 5, 2009 by airbus Quote Link to comment Share on other sites More sharing options...
Val Posted September 5, 2009 Report Share Posted September 5, 2009 izskatās pēc pamatskolas matemātikas. ja kļūdos, nesitiet parāk stipri. Quote Link to comment Share on other sites More sharing options...
Morphius Posted September 5, 2009 Report Share Posted September 5, 2009 bet kur jaliek banka vins ievada summu 500 vai vairak par 100 un kads skripts jaliek lai vairak pa 100ls neliek banka. Man piemēram nepielec ko autors šajā teksta daļā īsti vēlas...vai tip saliec pieturzīmes pats... Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted September 5, 2009 Report Share Posted September 5, 2009 LOL $hasMoney = 100; //cik ir nauda $money = 500; //cik grib noguldīt if($money > $hasMoney) { echo "FAIL"; } un 5% var aprēķināt (5*$money)/100 Es, protams, ceru, ka tu nerunā pa īstu banku... Quote Link to comment Share on other sites More sharing options...
bubu Posted September 5, 2009 Report Share Posted September 5, 2009 if ($x > 100) { echo "nevar"; } ? Quote Link to comment Share on other sites More sharing options...
briedis Posted September 6, 2009 Report Share Posted September 6, 2009 (edited) Njam, airbus nebeidz pārsteigt... airbus visdrīzāk mācās 9. klasē, bet šitādas lietas, manuprāt, mācīja jau kādā 3 klasē nu noteikti :) Edited September 6, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.