You're trying to modify your second code version. The addition of quotes around the non-numeric data recommended by the other monks should be done in the first code sample you posted, ie
$sqlinsert ="INSERT INTO T_table (T_tableID, Folder, Webpage) VALUES($ID,'$Folder', '$Webpage')";rdfield