You have run up against the great integer VS string battle

try adding this

code:

gets $sel
$sel = val("$sel")

and make sure that when you assign the $new_count variable that you do so without using quotes.

code:

$new_Count = 12

Bryce

PS. the latest chapter in the starters guide goes in to great detail about integers VS strings http://www.neosoft.com/~brycel/kix