View Single Post
Old 08-28-2008, 11:10 PM   #1 (permalink)
frosty
The Wanderer
 
frosty's Avatar
 
Join Date: Aug 2008
Location: texas
Posts: 13
Thanks: 3
frosty is on a distinguished road
Confused New Issue (more of a question)....

and it seams soo simple to do...

First thanks for the outsanding help I have received here!

My issue/question is this...

If I am using something like..

PHP Code:
function StripSpecChar($val) {
    return (
preg_replace('/[^a-zA-Z0-9" "-.@]/',''$val));
    }

    foreach (
$_POST as $key => $val) { 
     
$_SESSION[$key] = StripSpecChar($val);  
     } 
to handle my session information. Why can I not do something similar to it to pull values from a MySql db and convert them in to the same thing where I end up with something like this...

PHP Code:
$_SESSION[$coloum_name] = $val_of_cell
to put it back into a session array...

or am I just wishing that it could be that simple

Thanks
frosty is offline  
Reply With Quote