Problem: That code is only used to send permanment items only cause the column RentHourPeriod is missing
Info: Might have to change this code abit to your document forms
Code:
mssql_query_logged("INSERT INTO AccountItem ([ShopItemID], [AID], [ItemID], [RentDate], [Cnt])VALUES('$itemid', '$UserAID', '$zitemid', GETDATE(), 48)");
should be
Code:
mssql_query_logged("INSERT INTO AccountItem ([AID],[ItemID],[RentDate],[RentHourPeriod],[cnt]) VALUES ('".$_SESSION['AID']."','".$itemid."','".date('Y-m-d H:i:s')."','".$Rentperiod."',1)");