0) { // Loop through the results. while($row = mssql_fetch_array($sql)) { // Add the item to the inventory of the character. echo 'We added ItemID: ' . $_POST['itemid'] . ' to CID: ' . $CID . '.
'; mssql_query("INSERT INTO CharacterItem (CID, ItemID, RegDate, RentDate, cnt) VALUES ('".$row['CID']."', '".$_POST['itemid']."', GETDATE(), GETDATE(), 1)"); } echo $admingmp['66']; } } else { echo $admingmp['67']; } } else { echo $admingmp['174']; } } ?>