Ok well I'm going to post it all here, just so others know that I have it done and what not, also seeing that your on AIM, but using a "mobile device". Anyways, to move on.
I finished this up last night for you, the only problem being that I did not finish telling you how to actually use it.
I have uploaded the zip containing 5 files as an attachment. This is what you need to do to use this.
1. Upload the entire zip to your website's "root" directory. (Such as
public_html/)
2. Extract the zip, which should create a directory
public_html/habborequest
3. This step is optional. You can rename the directory to whatever you wish. If you do though, remember the name so you can update the files later. I'm going to assume your using habborequest though.
4. Edit the file: habborequest_config.inc.php which should be in the habborequest/ directory (Unless you renamed it). Change the corresponding lines to your MySQL database name, MySQL username, MySQL password, and the administrator username and password for the "admin panel". Also change the directory to when the habbo request php files are in. When done, save the file.
5. Once you have updated the file with the correct information, use a webbrowser and go to:
http://yoursite.com/habborequest/install.php That file *should* create the table needed for this. If you get an error, talk to me and I will help you. Is you get the message that the table was made, delete the file and continue with these steps. COMPLETLY DELETE INSTALL.PHP!!!
6. Now that your table is installed, place these lines into the location in the php file where ever you wish to have the "Request Form":
PHP:
<?php
// If you renamed the directory, change these lines as needed.
include('habborequest/habborequest_config.inc.php');
include('habborequest/habbo.class.php');
include('habborequest/habborequest.php');
?>
Save that file, then go to that page in a web browser. You should then see two text inputs and a submit button. If you don't and you get an error, talk to me and I will help you with it. Continue on if you do.
7. For the "admin panel", go to:
http://yoursite.com/habborequest/habborequestadmin.php. You will need to login using the username and password you set for the admin user to enter the "panel". From there, everything is self explanatory.
After doing all those, this should work. If it does not, ask me for help.
One more thing, I have tested the install.php file, as well as all other scripts to make sure they work ok, and they all do.
Also this was one of my first trys with OOP in PHP. It works though, so it's all good. :-D :ughdance:
Any questions Mr. Brownlove, talk to me on AIM or post back here. I'm sorry that this is confusing like it is.
Edit: I changed a few things a little.
[B[Edit 2:[/B] I updated the zip file. I have checked all files.. and they all work.
Bye bye,
-NedreN