Page 1 of 1

manual sql query

Posted: Thu Oct 02, 2003 10:27 am
by yaron
Hello all,
I've created a script that allows the user to execute manual queries.
It seems to work fine in simple queries but when there is a 'LIKE' or even WHERE I get syntax error and the same queries in the 'phpmyadmin' for mysql db works fine.
I've tried the addslashes function but with no success.
any ideas?

Posted: Thu Oct 02, 2003 10:35 am
by Nay
Maybe some code posted here would help. We could probably help you improve on it in some areas for it to work properly.

-Nay

Posted: Thu Oct 02, 2003 10:37 am
by yaron
No need
Got it
stripslashes is the answer!!