Wuu Posted March 5, 2009 Report 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
Aleksejs Posted March 5, 2009 Report 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
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.