What would the PHP mod be?
Any Ideas?
Moderators: Koibito, Stefko, Randy, Rosey
Order Date: August 27, 2003 12:04:42
Order Number: 20031204277-6
# Place the following just above the E-Mail Message text
# Open "$orderNbr_Data" (ordernbr.dat) and read the Order Number ($last_Nbr)
# assigned to the previous Customer .
if (open(SEQUENCE, "<$orderNbr_Data")) { # Open file for reading (output)
@lines = <SEQUENCE>; # Read first line
close(SEQUENCE); # Close file
@nbr_Info = split(/\|/, $lines[0]); # Separate variables
$last_Nbr = $nbr_Info[0]; # Read variable
}
if (defined $last_Nbr) {
$this_Nbr = $last_Nbr + 1; # Increment Order Nbr by 1
open(SEQUENCE, ">$orderNbr_Data"); # Open the file for writing (input)
print SEQUENCE "$this_Nbr\n"; # Write to file
close(SEQUENCE); # Close the file
}
$range = some value;
$minimum = some value;
$randnum = int(rand($range)) + $minimum;
$orderid = "$randnum";Users browsing this forum: No registered users and 0 guests