rolissx Posted December 7, 2012 Report Share Posted December 7, 2012 Tātad ir kods: $queryString .= '&amnt' . $coco . '=' . urlencode($item['subtotal']); Kas izdod kopējo cenu, bet latos, vajadzīgi santīmi, tātad vajag vienkārši subtotal * 100 Kā to pareizi noformulēt php? Paldies. Quote Link to comment Share on other sites More sharing options...
rolissx Posted December 8, 2012 Author Report Share Posted December 8, 2012 Atrisināju, bet vēl viens jautājums - tā kā iveikalā ir divas preces, tad nopērkot abas, tiek padots nevis kopējais amnt, bet gan amnt1 un amnt2, kā lai norāda, ka šos abus ir jāsaskaita? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 8, 2012 Report Share Posted December 8, 2012 + un * operatori? Srsly... Quote Link to comment Share on other sites More sharing options...
marrtins Posted December 8, 2012 Report Share Posted December 8, 2012 Close, delete. 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.