Sa:Mp Website starter kit -
Cameltoe - 31.08.2010
- Website Starter Kit
- Install
1. Download the files.
2. Extract it to your apache folder.
3. Configure config.inc to match your database (see "Config" longer down in this thread).
4. Import the sql file.
5. Run any browser with url directing to your website.
6. Watch the beauty of PHP, Enjoy!
- Screenie
- Screenshot 1
- Config
PHP код:
define ("DB_HOST", "localhost"); // Set this to the host the database is hosted on.
define ("DB_USER", "urusernamehere"); // Set this to whatever Account the have access to the server.
define ("DB_PASS","urpasshere"); // Set this to whatever the pass for the account is.
define ("DB_NAME","db"); // Chooses database.
define ("DB_TABLE","vehicles"); // Chooses database table.
$link = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die("Couldn't make connection.");
$db = mysql_select_db(DB_NAME, $link) or die("Couldn't select database");
- Future list:
- Easy structure so it's easier for not so advanced users to edit etc.
- Shows how to fetch data from a mysql database.
- Contains a easy readable And understandable .css file.
- Contains all vehicle images.
- Contains mysql database structure ( vehicles only for the moment, further updates will include more. )
- Updates:
- Make the script loop through all Vehicles. [ *** ]
- The style right now looks like shit. [ ** ]
- Menu's and navigation. [ * ]
- Structure: Users, Skins, Logg's into the database. [ * ]
[ * ] = Undone. [ ** ] = Working with. [ *** ] = Done.
- Download
- Link to folder with all files.
- Images
- phpfiles && Style
- Sql
- Credits
- Me.
- My dad ( learning me php basics ).
- sa-mp team.
Re: Sa:Mp Website starter kit -
Scenario - 31.08.2010
Uh... Why don't you explain some of the features? Maybe post some screenshots as well!
EDIT: Have your screenshots ready BEFORE you make you're final post!
EDIT 2: Okay, now I see some actual features listed. I'll try this out on my localhost!
EDIT 3: I've loaded this and set my MySQL settings, etc... I don't see any vehicles on the 'index.php' file when I load it up...
Re: Sa:Mp Website starter kit -
Cameltoe - 31.08.2010
Quote:
Originally Posted by RealCop228
Uh... Why don't you explain some of the features? Maybe post some screenshots as well!
EDIT: Have your screenshots ready BEFORE you make you're final post!
EDIT 2: Okay, now I see some actual features listed. I'll try this out on my localhost!
EDIT 3: I've loaded this and set my MySQL settings, etc... I don't see any vehicles on the 'index.php' file when I load it up...
|
1. when i posted this thread, the picture didnt show, im reuploading now.
2. Enjoy

3. You haven't imported the sql file loactated in the sql folder

[ What this actually means is that the Query can't find any vehicles in the table "vehicles". Edit index.php and look at the query change it to match your own database. ]
Re: Sa:Mp Website starter kit -
DiddyBop - 31.08.2010
Simple i suppose. But like you said, its for starters.
Re: Sa:Mp Website starter kit -
Cameltoe - 31.08.2010
Quote:
Originally Posted by DiddyBop
Simple i suppose. But like you said, its for starters.
|
More advanced in the upcoming updates
Re: Sa:Mp Website starter kit -
iJumbo - 31.08.2010
Very good im trying it !!
Re: Sa:Mp Website starter kit -
legodude - 31.08.2010
PHP rocks
i built little webbie too with PHP sa-mp integrated(HTTP(blabla) rocks!!)
Re: Sa:Mp Website starter kit -
Cameltoe - 31.08.2010
Quote:
Originally Posted by legodude
PHP rocks
i built little webbie too with PHP sa-mp integrated(HTTP(blabla) rocks!!)
|
Never tried the HTTP function's but i'm sure they are really usefull
Re: Sa:Mp Website starter kit -
DRIFT_HUNTER - 31.08.2010
Images archive is damaged
Re: Sa:Mp Website starter kit -
Cameltoe - 31.08.2010
Quote:
Originally Posted by DRIFT_HUNTER
Images archive is damaged
|
Noticed, im going to reupload it
EDIT: Reuploaded.
Re: Sa:Mp Website starter kit -
Kwarde - 01.09.2010
If you are a beginner in PHP: Nice script

There is only one 'stupid' thing (I don't know the right word, I cannot speak English very good -.-)
the IMAGES and DESIGN folder must be placed in the folder SAMP, but you dont have that map.
SOO I did do that :P And it is a handy mirror, it is all-in-one, with your credits in the IMPORTANT/readme.txt
You can use it, if you don't want it: say it, and I will remove it;
The URL:
http://urlffs.com/TfS9gV
Kind Regards,
Kwarde
Re: Sa:Mp Website starter kit -
Cameltoe - 13.09.2010
Quote:
Originally Posted by Kwarde
If you are a beginner in PHP: Nice script 
There is only one 'stupid' thing (I don't know the right word, I cannot speak English very good -.-)
the IMAGES and DESIGN folder must be placed in the folder SAMP, but you dont have that map.
SOO I did do that :P And it is a handy mirror, it is all-in-one, with your credits in the IMPORTANT/readme.txt
You can use it, if you don't want it: say it, and I will remove it;
The URL: http://urlffs.com/TfS9gV
Kind Regards,
Kwarde
|
Ofc, they have to go wherever the web folder goes pretty obvious

thanks for the mirror anyway ^^
Re: Sa:Mp Website starter kit -
HyperZ - 13.09.2010
Very Nice..