Adding more info
hello:
how would i add more
Code Sample:|
(at the end of each line) to a database constructed similiar to the one below so i could include more info for each member name?
Code Sample:
membername|date|birth|city
thanks in advance
------------------
Get paid to surf, email, and everything else online! 75 hrs a month at 55+ cents an hour! Beats AllAdvantage Easily. CLICK 4 DETAILS
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
japhy posted this at 15:24 — 16th December 1999.
They have: 161 posts
Joined: Dec 1999
I'm not sure your problem is as complicated as you might think... however, I do not like your choice of delimiter (the pipe symbol) as it requires extra work when splitting the database line into parts.
Here's a simple little chunk of code; it assumes the db.txt file looks like so:
The info() function returns a list of data regarding that specific user. The reason there is an extra "" before the list returned by the info() function is so that there is a colon after the current db line, and THEN colons between the data returned be info().
------------------
--
MIDN 4/C PINYAN, NROTCURPI, USNR
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.