I'm trying to store SQL code in a blob field in a mysql database, but i'm
having a problem.

The code looks like this "$sql='select * from vehicle where

After I retrieve it from the db i eval() it to get the result.

I can make this work if i store the code in a variable, but not if i store
it in a database table and retrieve it. I am sure i am missing the right
combination of addslashes/striplashes etc.

can anyone help on this problem?

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to