View Single Post
  #4 (permalink)  
Old 07-03-2007, 08:00 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee is just really niceLee is just really niceLee is just really niceLee is just really nice
Well lets say for some reason you have you data in textfile1 as:

Quote:
USER INFORMATION (id = `1`, user = `Fred`, password = `5f4dcc3b5aa765d61d8327deb882cf99`, email = `fred@fred.com`)
USER INFORMATION (id = `2`, user = `Fred`, password = `5f4dcc3b5aa765d61d8327deb882cf99`, email = `fred@fred.com`)
USER INFORMATION (id = `3`, user = `Fred`, password = `5f4dcc3b5aa765d61d8327deb882cf99`, email = `fred@fred.com`)
have a box to put the 'before' things in e.g. USER INFORMATION (
then then you insert what you want, if you want just user and password
then you insert either user and password and it finds it, or you put where you want the script to go from e.g. the ` for password the number would be 5 as its the 5th ` along and the script would know when the password end is as it would be 5 ++1.

From that it should maybe save the information based on for each set of data you want, a set being id, user etc, in the style of:

id:user:password
id:user:password
id:user:password

colon separating them...i find this thing really good and it can be very useful sometimes, obviously it wouldn't contain user password etc just an example, i have a program in C++ that does this that i got from someone and its simple to edit to your needs and i think C++ is the harder language.

Its just an idea, i need to learn about things like this in php so would help a lot.

Thanks anyway

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote