1. Download the files.- Screenie
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!
- Screenshot 1- Config
- Future list: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");
- Easy structure so it's easier for not so advanced users to edit etc.- Updates:
- 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. )
- Make the script loop through all Vehicles. [ *** ]- Download
- The style right now looks like shit. [ ** ]
- Menu's and navigation. [ * ]
- Structure: Users, Skins, Logg's into the database. [ * ]
[ * ] = Undone. [ ** ] = Working with. [ *** ] = Done.
- Link to folder with all files.- Credits
- Images
- phpfiles && Style
- Sql
- Me.
- My dad ( learning me php basics ).
- sa-mp team.
|
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... |

[ 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. ]
|
PHP rocks
i built little webbie too with PHP sa-mp integrated(HTTP(blabla) rocks!!) |


|
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 |
thanks for the mirror anyway ^^