Quote:
Originally Posted by xTwiLightx
How did you setup your website?
IIS with PHP or XAMPP?
We need way more details than you gave us.
Maybe you should look for this one in your sites/shop.php:
Code:
if(isset($_POST['shopBuyItem'])) {
And remove all leading @'s before your odbc_exec function calls.
to
This should make it possible for your site to log errors.
But we really need to know where your error logs are.
|
Hello there, sorry for the very late reply. I will be trying to do this for the php log to show up. Since I only have the errors for the apache I believe but in the apache error logs there are some php related errors and I do not see any thing regarding the cause of my problem in it. I am using XAMPP.
This is the one you are talking about that I did not alter in any way:
Code:
if(isset($_POST['shopBuyItem'])) {
if( [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, $strUpdateBalance)
AND
[MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, '
INSERT INTO [' . $_CONFIG['db_databases']['web'] . '].dbo.[LOG_PURCHASES] (
item,
itemname,
itemcount,
itemcurrency,
itemworth,
account,
datetime
) VALUES (
' . cleanSqlInput($mixedSelectedItemDetailsArray['itemid']) . ',
\'' . cleanSqlInput($mixedSelectedItemDetailsArray['name']) . '\',
' . cleanSqlInput($mixedSelectedItemDetailsArray['count']) . ',
' . $intGetCurrentCurrency . ',
' . cleanSqlInput($mixedSelectedItemDetailsArray[$intWorthColumnHelper]) . ',
\'' . cleanSqlInput($_SESSION['user']) . '\',
\''. date($_CONFIG['web_date_format']['dbDatetime']) .'\'
)
')
AND
send_item($intCharacterID, $mixedSelectedItemDetailsArray['itemid'], $mixedSelectedItemDetailsArray['count'])
) {
echo createMessage($_LANG['success_item_bought'], 'success');
}
else {
echo createMessage($_LANG['error_item_could_not_be_sent'], 'fail');
}
}