sandis_m Posted November 23, 2009 Report Share Posted November 23, 2009 Vai ir iespējams updeitot kādu datubāzes lauciņu ieejot lapā, piem. ' update-extra.php '? Quote Link to comment Share on other sites More sharing options...
briedis Posted November 23, 2009 Report Share Posted November 23, 2009 Protams, ka ir iespējams. Quote Link to comment Share on other sites More sharing options...
sandis_m Posted November 23, 2009 Author Report Share Posted November 23, 2009 Protams, ka ir iespējams. Varētu, lūdzu, iedot piemēru? :) Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted November 23, 2009 Report Share Posted November 23, 2009 Es varu vairākus piemērus iedot: http://www.google.com/search?rlz=1C1GGLS_enLV336LV336&sourceid=chrome&ie=UTF-8&q=php+mysql+tutorial Quote Link to comment Share on other sites More sharing options...
sandis_m Posted November 23, 2009 Author Report Share Posted November 23, 2009 (edited) Es varu vairākus piemērus iedot: http://www.google.com/search?rlz=1C1GGLS_enLV336LV336&sourceid=chrome&ie=UTF-8&q=php+mysql+tutorial Vienkārši, iedod kādu piemēru, LŪDZU! :) Edited November 23, 2009 by who_i_am Quote Link to comment Share on other sites More sharing options...
false Posted November 23, 2009 Report Share Posted November 23, 2009 (edited) mysql_query("UPDATE TABULA SET LAUKS=JAUNS_TEKSTS"); or mysql_query("UPDATE TABULA SET LAUKS=JAUNS_TEKSTS WHERE id=".$id.""); ? Edited November 23, 2009 by false Quote Link to comment Share on other sites More sharing options...
sandis_m Posted November 23, 2009 Author Report Share Posted November 23, 2009 (edited) mysql_query("UPDATE TABULA SET LAUKS=JAUNS_TEKSTS"); or mysql_query("UPDATE TABULA SET LAUKS=JAUNS_TEKSTS WHERE id=".$id.""); ? ...nee tas laikam nebuus tas. Ieluuri: <?php $coins=$rw_settings['LVL']; if ($coins=="10") // [b]SHEIT DARBIIBA KUR PIEVIENO VEEL 10 [help plzz] [/b] ?> Edited November 23, 2009 by who_i_am Quote Link to comment Share on other sites More sharing options...
false Posted November 23, 2009 Report Share Posted November 23, 2009 (edited) <?php $coins=$rw_settings['LVL']; if ($coins=="10") $desmit = "10"; $add_coins = $coins+$desmit; mysql_query("UPDATE tabula SET coins='$add_coins' WHERE id=$id"); ?> ? Edited November 24, 2009 by false Quote Link to comment Share on other sites More sharing options...
briedis Posted November 23, 2009 Report Share Posted November 23, 2009 false(feils), tavs variants uzstādīs visiem tabulas ierakstiem coins vērtību uz 10... who_i_am, vai nu sāc ar pamatiem kko mācīties, vai maksā kādam kas to izdara tavā vietā... Forums nebūs tās īstā vieta, kur jautā - iedodiet man kodu kaut kam, kas dara kaut ko... Quote Link to comment Share on other sites More sharing options...
false Posted November 24, 2009 Report Share Posted November 24, 2009 false(feils), tavs variants uzstādīs visiem tabulas ierakstiem coins vērtību uz 10... Nu pielikt vēl WHERE id=$id Quote Link to comment Share on other sites More sharing options...
sandis_m Posted November 24, 2009 Author Report Share Posted November 24, 2009 Nu pielikt vēl WHERE id=$id Labi, thnx par to pašu ... Gan jau kaut kā atrisināšu probleemu ;) 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.