snach15 Posted March 31, 2011 Report Share Posted March 31, 2011 (edited) gribu panākt tā lai lietotājs kad inputā ieraksta summu, piemēram 100 un submito tad no tās summas noņem 10% un tā summa vienkārši kautkur izkūp gaisā, bet pārējais (90) tiek nogādāts tālāk .. man izdevās tikai ķipa visi 100 aiziet tālāk no pēctam no tiem 100 viņš aprēķina kad jānoņem ir 10 un noņem vēl papildus nost ... . $summa - 10%; mysql_query("UPDATE user SET punkti = punkti + $summa WHERE username='".$_SESSION['username']."'"); Edited March 31, 2011 by snach15 Quote Link to comment Share on other sites More sharing options...
briedis Posted March 31, 2011 Report Share Posted March 31, 2011 Nu kas ta nu, sākumskolas matemātiku esi aizmirsis vai? :D Quote Link to comment Share on other sites More sharing options...
snach15 Posted March 31, 2011 Author Report Share Posted March 31, 2011 miegs laikam dara brīnumus :D nevaru šito spridzekli uzmocīt ... Quote Link to comment Share on other sites More sharing options...
briedis Posted March 31, 2011 Report Share Posted March 31, 2011 $summa = $summa * 0.9 Quote Link to comment Share on other sites More sharing options...
snach15 Posted March 31, 2011 Author Report Share Posted March 31, 2011 mja nu paldies :D 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.