Menu

#45 sqlbind25 : "$counter_1" not working

Submitted Fault
open
nobody
5
2001-07-30
2001-07-30
Anonymous
No

I am having trouble getting Soupermail to Replace the
variable $counter_1 with its value in a sqlbind
statement. The Replacer simply returns "$counter_1"
w/o quotes and puts it into the MySQL database. Here
are some excerpts from the debug file:

# Early in the file:

setConfig (ref %mmm%%dd%%yyyy%%hhhh%%mm%%ss%-%
counter_1%) @ 996458024
setConfig (counter1file
~/counters/serialnumbers/serialnumber1.txt) @ 996458024
makePath (~/counters/serialnumbers/serialnumber1.txt)
@ 996458024
securityFilename (GMR Deleted File Path)
grabFile (GMR Deleted File Path) SCALAR(0x827ed58)) @
996458024
file grabbed is 9 bytes

# So it seems to grab the right .txt file with the
counter number in it, but...

# Even though $form variables work like a charm:
replacer ("$form_Ship-Zip" sqlbind24) @ 996458024
replacer looking at chunk
replacer looking at chunk $form_Ship-Zip
Replacer returns [94925-1053]

# The counter variables don't:
setConfig (sqlbind25 "$counter_1") @ 996458024
replacer ("$counter_1" sqlbind25) @ 996458024
replacer looking at chunk
replacer looking at chunk $counter_1
Replacer returns [$counter_1]

Am I doing something wrong?

Best regards,
Gary M. Root
groot@liquidspark.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB