well I've kinda fixed the problem... I keep getting an error when I use the pagex variable to select from... For some reason even though the value of pagex is the equivilant of a number I seem to still have to type that number in myself... So instead of going
Select from table1 where number = pagex
i have to type
select from table1 where number = 5
or something like that...
Its pissing the **** *** * *** * *** * *** *** out of my **** * **** ** mind and I cant **** *** handle it.