Zyse Posted February 13, 2010 Author Share Posted February 13, 2010 how do I make it where it will look for an entry and not add duplicates? been looking forever XD Link to comment https://forums.phpfreaks.com/topic/191735-got-a-start-on-writing-to-a-file/page/2/#findComment-1011635 Share on other sites More sharing options...
WolfRage Posted February 13, 2010 Share Posted February 13, 2010 You are going to to compare the string that you plan to insert into the file with every line in the file and if no match is found then you can insert it. Link to comment https://forums.phpfreaks.com/topic/191735-got-a-start-on-writing-to-a-file/page/2/#findComment-1011778 Share on other sites More sharing options...
Zyse Posted February 13, 2010 Author Share Posted February 13, 2010 Ah I see I see, Ill get to work on that. Thanks again for all your help, ill mark this as solved for now. :3 ty for teaching me Link to comment https://forums.phpfreaks.com/topic/191735-got-a-start-on-writing-to-a-file/page/2/#findComment-1011842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.