Strats Posted March 20, 2009 Posted March 20, 2009 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. Quote
DELETE ME NOW! Posted March 20, 2009 Posted March 20, 2009 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... Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 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()); Quote
DELETE ME NOW! Posted March 20, 2009 Posted March 20, 2009 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... Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 Re: Improved Staff Logs For V2 But yet you only look at the sprintf() Try brushing up on abs() and intval() Quote
DELETE ME NOW! Posted March 20, 2009 Posted March 20, 2009 Re: Improved Staff Logs For V2 Yo i do know .. lol Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 Re: Improved Staff Logs For V2 Look past the sprintf() then. Quote
DELETE ME NOW! Posted March 20, 2009 Posted March 20, 2009 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 Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 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()); Quote
POG1 Posted March 20, 2009 Posted March 20, 2009 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. Quote
Strats Posted March 21, 2009 Author Posted March 21, 2009 Re: Improved Staff Logs For V2 Your missing some bits :P Like a php file to sow you the list of transfers I have it all done now :) Quote
Eternal Posted March 21, 2009 Posted March 21, 2009 Re: Improved Staff Logs For V2 lol @ missed a few. I am sure people of today can learn a little sql and php inclusion. :P Quote
Strats Posted March 21, 2009 Author Posted March 21, 2009 Re: Improved Staff Logs For V2 Lol I'm just being cheeky Quote
DELETE ME NOW! Posted March 21, 2009 Posted March 21, 2009 Re: Improved Staff Logs For V2 Lol I'm just being cheeky lol Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.