OK my problem is a need to add values to 2 fields in mysql, I have a csv that has the values for some of the fields and some I need to make up as the lines are inserted.
I have 2 fields lpos and rpos that need numbers counting in 2s so lets say
lpos = 1 and rpos 2
then it has to be
lpos 3 rpos 4
as each line is inserted.
I am not sure if I can put 3 for statments together or should it be while ?
Last 2 lines do not seem to do what i want it to do if i put it before or after the third line of code.
Can some one help me out a little I cant find anything about counting in two’s.
or am i not putting the variable in correctly should I be using $result[$lpos] in the insert startment instead of $lpos.
[php]$result = csvToArr("./end.txt");
$limit = count($result);
for($i=0;$i<$limit;$i++) {
for($lpos=1;$lpos<$limit;$lpos+2)
for($rpos=2;$rpos<$limit;$rpos+2)[/php]