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