View Full Version : Can someone point me where to go with this?

12-14-2010, 07:48 PM
Hi, I have been working on a new site..
Its going to kind of be a RPG type game, but right now I am trying to get the site to work..

So far, I have http://php-login-script.com/ Which it has a profile and everything, but can someone point me where to start, or if there is already a script for like a catalog on the site?

Like in your profile you'd have a character.
You could go to the catalog on the site, and buy lets say a hat or a shirt, then you can go into your inventory on the site and there would be under your character it would say

For example Cowboy Hat | WEAR | REMOVE

Then when you hit wear it would go on your character.
If someone could tell me a name of a PHP script to do this, or point me in how to start the script that would be great. I've seen this done on many sites..

12-14-2010, 08:53 PM
This sounds too specific for a turn-key script you can download and run. So what you need would be:

1. Good working knowledge of PHP/HTML based on your own experience coding websites using PHP/HTML

2. Good working knowledge of a storage tool, preferrably a RDBMS such as MySQL, though it's possible you could use your webserver's file system (I wouldn't recommend it)

Both requirements above need to be gained by creating and coding web pages over time, starting with simple projects and moving up in complexity and functionality. At some point you will realize you have the knowledge and expertise it requires to code an entire browser game.

12-14-2010, 10:17 PM
What your looking for requires a fair amount of work to assemble

1)For starters you must first build a users database

2)Then build a sign-up form with proper security and escape coding to prevent crossline attacks and intruding data.

3)build a login page, should have some kind of unlock code script to detour password hackers

4)build landing page with user groups so each user can maintain their profile and access their necessary data

5)build the Admin landing page to manage users accounts.

5)and finally every page must be coded with the session code something like this.

// code every page with a session header to keep track of the user
if($_SESSION[user]->rights!= "users_rights") {
die("You do not have permission to access this page!");
// build a connection script to your default db_connect
// Check if user has permissions.
$sql = sprintf("SELECT * FROM users ORDER BY username ASC", $_SESSION[user]->id);
$query = mysql_query($sql);
$username = $_SESSION[user]->firstname ;
// You Are Now Connected - Session Started