New Zenner
- Join Date:
- Jun 2009
- Posts:
- 86
- Plugin Contributions:
- 0
Writing extra order info to the db
Yep, got everything to post however my output is screwed up, here i put them in an array, if they dont have a value of 0, which works pretty well.
for ($i=0; $i<12; $i++) {
$tboxv=$_POST['acl'.$i];
$tbval=$GLOBALS->$cliparray[$i];
if ($tboxv != 0) {
$fortnot[$i] = $tbval . " X " . $tboxv;
}
}
The $GLOBALS->$cliparray[$i]; looks like this:
[cliparray] => Array
(
[0] => Red Ribbon
[1] => Baby
[2] => Music
[3] => Grin and Bare it!
[4] => Religious
[5] => Flag
[6] => Birthday
[7] => Get Well
[8] => Angel
[9] => Roses
[10] => I'm Yours
[11] => Lipstick
)
Then I append them on the class like this:
$class->info['comments']= print_r($fortnot, true) ;
my output is this:
Array
(
[3] => X 4
[4] => X 4
)
i need them like this:
Music X 4
Grin and Bare It! X 4
Any help would be appreciated
Jeff