Yeah thanks, thats another reason i split up the input values for ip into 4 inputs because i wanted to set them as intval() to make it secure and then mask the . in when i concatenate it before i store it as one value.
I would like to make the config values all int as well, even table value as int but there may be additions to the config values later and some may be var char.
Right now the only config value in there is the records per page that can be set dynamically in admin panel and that is def an int value.
Yes i validate data two ways. First thru javascript and then as a backup thru php.
thanks