Wuu Posted March 5, 2009 Report Share Posted March 5, 2009 $f = fopen('orders/'.$name.'.txt', 'w'); fwrite($f,'ID:'.$_GET['id'].'\n'); fwrite($f,'Vārds Uzvārds:'.$r[2].'\n'); fwrite($f,'Adrese:'.$r[3].','.$r[4].','.$r[5].'\n'); fwrite($f,'Tālrunis:'.$r[6].'\n'); fwrite($f,'E-Pasts:'.$r[7].'\n'); fwrite($f,'Daudzums:'.$r[8].'\n'); fclose($f); Viss ierakstītais kods ir vienā līnijā ar visiem \n Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted March 5, 2009 Report Share Posted March 5, 2009 Raksti nevis šitā: fwrite($f,'Daudzums:'.$r[8].'\n'); Bet šitā: fwrite($f,'Daudzums:'.$r[8]."\n"); Tā ir "vienpēdiņu" īpašība tāda :) Quote Link to comment Share on other sites More sharing options...
Wuu Posted March 5, 2009 Author Report Share Posted March 5, 2009 Paldies Aleksej! 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.