Jump to content

[SOLVED] PHP statements close too early


Mutley

Recommended Posts

Your probably not an organizer but in my code this is how i would set something up to keep track of it:

[code]

<?php

if(blahblahblah) {
    DO STUFF
} else {
    DO OTHER STUFF
} // End of if(blahblahblah)
?>
[/code]

label your closings so you know if you closed something or not...use your tab key spread functions out....organize it a bit put things you open on one line the closing on the same and anything you open in between tab once before you do it
Fixed it, used the feature in Dreamweaver to "minimize" the code, so I matched every opening bracket to the appropriate closing one. The problem was I had certain functions ending too early before another function, so it just got confused by ending it half way through a function.

Thanks guys.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.