Computer Science Canada Hey, I'm back and such. |
Author: | Mint [ 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. |
Author: | rdrake [ Fri Mar 31, 2006 3:51 pm ] |
Post 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. |
Author: | Blade [ Fri Mar 31, 2006 5:05 pm ] |
Post subject: | |
yeah, a database is much better... and i wrote a tutorial on it a while back.. http://compsci.ca/v2/viewtopic.php?t=7589 |