mihai code] $file = fopen($username,„a“); fwrite($file,„input whatever you want to input here“); fclose($file); [/code] This code help to save one file/user But how i can save 3 files/user, Ex: mihai 1 , mihai 2, And how to read atk/user, hp/user using session? :( im blocked
youngestdj » mihai This code will save 3 files „Mihai1“,„Mihai2“,„Mihai3“. [code] <? $username=„Mihai“; for($i=0; $i<=3; $i++) { $file = fopen($username.$i,„a“); fwrite($file,„enter content to be save here“); } fclose($file); ...Continue reading »