ever heard of code styling? (if you haven't, google it!)
i doubt anyone would help you without you putting some effort in learning how to style your code.
PHP Code:
function exampleOfStyling() {
if (value == foo) {
doFoo();
}
else if (value == bar) {
if (bar == 5) {
doBar();
} else doBarTwo();
}
}
it will also make your code much easier to read for others.