i know that but what if you want to have an unlimited amount of users? im thinking i have to use files to save them
Oh …
i know that but what if you want to have an unlimited amount of users? im thinking i have to use files to save them
Look into MySQL. It's rather easy and a very good solution. It's easy to use from PHP.
Yes, please don't use files X_X
You're using 000webhost right? They do support PHP with free accounts so go to
phpMyAdmin. But first you need to create a PHP database with a username and a password.
In the members area, click on MySQL under 'Software / Services' with the desired database name, username and password. Now go into phpMyAdmin to add tables with different fields etc.
To connect to a MySQL DB:
$con = mysql_connect("webhost", "username", "password") or die('This error message will appear if it failed to connect the the DB');
Now that will just initialize the connection, to select a database:
mysql_select_db("database_name", $con) or die(mysql_error());
where database_name is the name of the database you want to send/retrieve information from/to.
From then on, just google the different queries you can do when dealing with databases.