First up is the page that is shown in index when a certain button is pressed
Index.php HERE (the ?> <?php are a little messed since it's taken from my original code)
then we have the config.php where i have all the mysql data and extra functions like string trim and different filters.
config.php HERE
The mysql info in the config.php is very simple, i added it just to make it easier for me to switch between hosts if needed (which i am in fact doing atm)
Code: Select all
session_start();
/*Page settings*/
$title="-==Document Cat==-";
/*Config for the MySQL connection*/
$host="localhost";
$user="root";
$pass="lol";
$db="mindb";
I wont show you all the tables that i use here, they are included in the code though.
register.php HERE
As you can see in the code it's a function, which i call on the index page when the user submits the reg info, the register.php then checks so that everything is alright and then if it is, it will add the info to the database...
The register page just got done so i am adding alot of stuff like mail filter and image verification.