[PHP] How to prevent user directly input SQL query

2005-02-07 Thread Thone
ommand? Is there any method to prevent that? Another question is that, are there any PHP build-in function to remove some unwanted charactor (like " and ' and \ and / ...) or I have to do it manually? Best Regards, Thone -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Problem with session

2005-02-05 Thread Thone
Greg Donald wrote: On Sat, 05 Feb 2005 17:53:01 +0700, Thone <[EMAIL PROTECTED]> wrote: Hi, I don't know what I did it wrong but i can send any variable through seesion. I have something like this: //page1.php session_start(); $_SESSION['time_to_expire'] = time + AL

[PHP] Problem with session

2005-02-05 Thread Thone
Hi, I don't know what I did it wrong but i can send any variable through seesion. I have something like this: //page1.php session_start(); $_SESSION['time_to_expire'] = time + ALIVE_TIME; //page2.php session_start(); print isset($_SESSION['time_to_expire']); always get '0'; thanks -- PHP Genera