November 28th, 2012, 03:13 AM
Hi, Im having a problem resetting a barcode in an emailer. Im sending a email in a loop. The barcode is the same for every emailer created.
Please can you help with resetting the $barcode variable each time the loop runs.
Comments on this post
November 28th, 2012, 03:19 AM
Try this instead
Or if that doesnt work, just try assigning null like:
$barcode = NULL; $barcode = false;
November 28th, 2012, 03:35 AM
Gaston, if you refer to this code, your barcode problem has nothing to do with "resetting" the variable or whatever. The program logic is simply wrong. That's what I tried to tell you last time, but I haven't heard from you since.
When you always fetch the same database row in every iteration, you always get the same barcode. There's no reset function that will change this.