PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
I am no PHP expert. I can poke about, do a little cut and paste.
Dreamweaver is telling me I have a syntax issue with my if statement. I have tried a few things without success.
Dreamweaver says the error is on the else line, that may not be true. please show me what I am doing wrong.
Thanks Mark
fird01 wrote:may be u shouldn't trust dw so much.. i dont see any difference there
I concur with fird01.
The code sample can easily be simplified to following below. Dreamweaver probably has it's reasons for using that specific format for producing the code though (however curious).
Dreamweaver does that so you can add formatting between the case statements without it having to refractor the <?php code tags so it works properly. My suggestion: don't use Dreamweaver for anything other than building the layout and do all your PHP work after the fact.