manual sql query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yaron
Forum Contributor
Posts: 157
Joined: Fri Aug 22, 2003 8:40 am

manual sql query

Post 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?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
yaron
Forum Contributor
Posts: 157
Joined: Fri Aug 22, 2003 8:40 am

Post by yaron »

No need
Got it
stripslashes is the answer!!
Post Reply