| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Sep 28, 2004 8:22 am Post subject: [resolved] Does vdsmysql addslashes work ? |
|
|
Hi,
does vdsmysql.dll - @mysql(addslashes really work ?
I never had any problems with it - also inserting memos with slashes into mysql worked fine.
But now I have to set queries dynamically using variables.
So I wanted to use
field = '@mysql(addslashes,%%content)'
But this seems not to work. Possibly addslashes does only work inside a mysql query command`?
Here is an example script:
| Code: | directory change,@path(%0)
external vdsmysql.dll
#define command,mysql
#define function,mysql
%%var = test@chr(34)var@chr(34)test
info var: %%var@cr()escaped: @mysql(addslashes,%%var) |
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Sep 28, 2004 9:50 am Post subject: |
|
|
Hi,
sorry - found my mistake.
Quotes becomes masked, not double quotes.
Bye, Fabian |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|