How can I fix this? :S
Use MY zaypay script and NOT my old version uploaded by the idiots developing Gesior. I fixed all those bugs and they didn't...
http://otland.net/f118/stians-zaypay-script-standalone-v0-1-2b-59629/
if you want this logging feature, install MY first, then apply his changes.
$main_content .= '<table style="margin:20px 0 10px 0;" border=0 cellspacing=1 cellpadding=4 width=100%>
<tr bgcolor='.$config['site']['vdarkborder'].'><td>ID</td><td>Account ID</td><td>Amount</td><td>Type</td><td>Code</td><td>Paypal Email</td><td>Date</td></tr>
';
$i = 0;
foreach($SQL->query('SELECT id, amount, type, accountid, code, paypalmail, date FROM z_shop_points_bought WHERE accountid IS NOT NULL') as $muut)
{
$i++;
$main_content .= '<tr bgcolor="' . (is_int($i / 2) ? $config['site']['lightborder'] : $config['site']['darkborder']) . '">
<td>' .$muut['id']. '</td>
<td>' .$muut['accountid']. '</td>
<td>' .$muut['amount']. '</td>
<td>' .$muut['type']. '</td>
<td>' .$muut['code']. '</td>
<td>' .$muut['paypalmail']. '</td>
<td>' .$muut['date']. '</td>
</tr>';
}
$main_content .= '</table>';
Well i noticed that you didnt add sql query which lists all the bought points in to table. So here it is ^^
Code:$main_content .= '<table style="margin:20px 0 10px 0;" border=0 cellspacing=1 cellpadding=4 width=100%> <tr bgcolor='.$config['site']['vdarkborder'].'><td>ID</td><td>Account ID</td><td>Amount</td><td>Type</td><td>Code</td><td>Paypal Email</td><td>Date</td></tr> '; $i = 0; foreach($SQL->query('SELECT id, amount, type, accountid, code, paypalmail, date FROM z_shop_points_bought WHERE accountid IS NOT NULL') as $muut) { $i++; $main_content .= '<tr bgcolor="' . (is_int($i / 2) ? $config['site']['lightborder'] : $config['site']['darkborder']) . '"> <td>' .$muut['id']. '</td> <td>' .$muut['accountid']. '</td> <td>' .$muut['amount']. '</td> <td>' .$muut['type']. '</td> <td>' .$muut['code']. '</td> <td>' .$muut['paypalmail']. '</td> <td>' .$muut['date']. '</td> </tr>'; } $main_content .= '</table>';