Hey, I'm back and such.
Author |
Message |
Mint
![](http://www.compsci.ca/v2/download.php?id=1897)
|
Posted: Fri Mar 31, 2006 11:05 am Post subject: Hey, I'm back and such. |
|
|
Hey there,
I haven't been here in a while, and now I need some php help.
I have small project I'm doing for fun, I have 2 files, the first is simply a form that asks for a username, a password an army type (radio buttons with numerical values). The information is then carried over to a .php file which then takes the data, and from the army type sets up the basic information (money, how many units, deffence, attack) and writes it to a text file. The problem is that I don't know how I can have php look into that text file and extract the information perline and then use it.
OR, should I just avoild that whole problem and just try to do it with mysql?
(with which help would also be appreciated)
-Jake
Ps. this is just for fun and I don't have alot of experience with php, so all help is appreciated. Thanks alot. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
rdrake
![](http://compsci.ca/v3/uploads/user_avatars/113417932472fc6c9cd916.png)
|
Posted: Fri Mar 31, 2006 3:51 pm Post subject: (No subject) |
|
|
I would discourage the use of a file for this, a database is much more rubust, less prone to corruption, and many, many users can access the data at the same time.
That being said, this looks like a good tutorial to get you started. Personally I just picked up a book with several example apps and went from there.
Just read up some tutorials online, and if you still have problems, we'll be more than happy to help out. |
|
|
|
|
![](images/spacer.gif) |
Blade
|
|
|
|
![](images/spacer.gif) |
|
|