controlling motors connected to mosfets at the same time.

okay thankss!! so i fixed some things, could u possible tell me what this does to my motors. sorry i dont have the set up with me, and what i could change to make all three run at the same time for 4 seconds! thanks

// lol
int leftPin = 0;
int rightPin = 2;
int backPin = 4;

int leftState = LOW;
int rightState = LOW;
int backState = LOW;
long previousMillis = 0;
long interval = 1000;

void setup () {
pinMode (leftPin, OUTPUT);
pinMode (rightPin, OUTPUT);
pinMode (backPin, OUTPUT);
}

void loop () {
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
previousMillis = currentMillis;

if (backState == LOW)
backState = HIGH;
else
backState = LOW;
digitalWrite(backPin, backState);
if (leftState == LOW)
leftState = HIGH;
else
leftState = LOW;
digitalWrite(leftPin, leftState);
}

}

THANKS!!