Jump to content
MakeWebGames

Recommended Posts

Posted

I can't see a request thread so I am posting this, feel free to point out where I can post this if not here.

I am wanting a Staff Logs that show cash transfers for partners.

So I can see if someone scams their partner.

Has this been made?

If not mail me I would pay for it to be made.

Posted

Re: Improved Staff Logs For V2

LOL, its easy to make... when someone takes money or gets money from there partner.. insert the log into the db :P example...... mysql_query("INSERT INTO `partner_logs` (`id`, `user`, `time`, `money`, `crystals`) VALUES('NULL', '".mysql_real_escape_string($ir['username'])."', unix_timestamp(), '{$_POST['money']}', '{$_POST['crystals']}')") or die (mysql_error()); that was a quick example.. Also you can just make a function to view them from staff panel...

Posted

Re: Improved Staff Logs For V2

Or adapt your idea Crazy-T

$db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());

Posted

Re: Improved Staff Logs For V2

 

Or adapt your idea Crazy-T

$db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());

Karlis i know.. you like sprintf like you said the other day.... My way fine.. yeah forgot to add that but ooh well...

Posted

Re: Improved Staff Logs For V2

 

Or adapt your idea Crazy-T

$db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());

Failed

Posted

Re: Improved Staff Logs For V2

Oh well a rough guide missed a ( between abs and @intval

 

$db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs(@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());

Posted

Re: Improved Staff Logs For V2

Try type casting if your gonna be using integers because it may cause some problems when it gets to number things.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...