PDA

View Full Version : OOP Programmer Needed for Small Job


Kittyful
02-25-2008, 05:33 PM
My game is not using any Kitto scripts, so you don't have to be familiar with them.

Basically, I have a small bug. The coding isn't updating the members' sessions properly. Changes in the database are being made, but members need to log out and back in to see any changes to their accounts.

So I need someone to come in and fix that for me.

Plus, I need a small tweak to my items - they are listed one to a row, and ideally I'd like them to be displayed in rows of three.

Please reply with your quote and a small coding sample. :)

dc277
02-25-2008, 06:16 PM
I'll be glad to do it. It shouldn't be TOO hard.

And
Free.

EDIT: Oh, and I forgot an example.

Hm....
Give me a sec to find a good one.

EDIT2:
Not the greatest, but some coding


class db {
public $db_host = ''; //The Database Connection Host
public $db_user = ''; //The Database Connection User
public $db_pass = ''; //The Database Connection Password
public $db_name = ''; //The Database Name
protected $db_link = '0'; //Just used to see if the database is connected.
function connect() {
$cont = @mysql_connect($this->db_host, $this->db_user, $this->db_pass); //Connect to the database
if (!$cont) {
site::error("Could not connect to the database."); // ERROR!
} else {
$sel = @mysql_select_db($this->db_name, $cont); //Select the database
if (!$sel) {
site::error("Could not select database."); // ERROR!
} else {
$this->db_link = '1'; // It connected fully! (Makes it so mysql_close() will know when it is connect)
}
}
}

function close() {
if ($this->db_link == '1') {
mysql_close();
}
}

Kittyful
02-25-2008, 09:15 PM
Programmer has been found. Thanks!