Basically this is what I am doing:
Code: Select all
$stateUsed = false; //flag since we only echo out the state once
$arg3 = $currentState . "%";
//pull a list of cities for the current state
$cityUsed = false; //flag since we only echo out the city once.
The $stateStmt query and loop execute correctly. As soon as I go to execute the second statement "$cityStmt->execute()" I get a "Commands out of Sync" error.