Hello,
Ive been coding with the random generator
my codes in the random generator are of the following format:
11111111
11111112
11111122
11111222
and so on..
in the PHP coding, as advised before, when i code as:
$var = value('VC01');
$factor1 = $var{0};
$factor2 = $var{1};
$factor3 = $var{2};
$factor4 = $var{3};
$factor5 = $var{4};
$factor6 = $var{5};
$factor7 = $var{6};
$factor8 = $var{7};
if ($factor1 == 1) {
replace('%text1%', 'No');
} else {
replace('%text1%', 'Yes');;
}
if ($factor2 == 1) {
replace('%text1%', 'No');
} else {
replace('%text1%', 'Yes');;
and so on..
the First error that pops up is that "$factor2 = $var{1};" is "Uninitialized string offset".
Secondly, I have used html coding in the PHP to create a table to hold the random values selected by the random generator. However, it only shows all "yes" or all "no" and no combination as the values i have inputted in the random generator.
I'd appreciate your help again.:)