| View previous topic :: View next topic |
| Author |
Message |
adam Voice
Joined: 19 Feb 2006 Posts: 2
|
Posted: Sun Feb 19, 2006 2:33 am Post subject: Enter nick problem into mysql |
|
|
Hey guys and girls
I have made a tcl that enters user information into mysql. But I have a problem when the nick has a \ in it. Mysql requires the value to be set to \\.
| Code: |
set $nick "ad\am"
## Nick need to be "ad\\am" to go into mysql
|
I have tryed {$nick} and a regsub a mate try to make. Nothing has worked yet. Any help with this problem would be ace.
Adam |
|
| Back to top |
|
 |
adam Voice
Joined: 19 Feb 2006 Posts: 2
|
Posted: Sun Feb 19, 2006 2:57 am Post subject: when you give up |
|
|
Like they say when you give up is when you find it. I am still not sure if this is the correct way. Thanx
| Code: | | set nick [string map {\\ \\\\ \[ \\\[ \] \\\] \( \\\( \) \\\) \{ \\\{ \} \\\} \" \\\"} $nick] |
Adam |
|
| Back to top |
|
 |
|