What is here wrong???

if ( id is in the querystring )
switch id

case 25114:
echo “…html-source…”

Your syntax…

If you are writing a program… You need to review http://us3.php.net/manual/en/language.control-structures.php#control-structures.if on writing IF statements.

Also your SWITCH is wrong too.

http://us3.php.net/manual/en/control-structures.switch.php

I hate to be critical, but these are very basic programming concepts. If you are asking a question like this then, perhaps you should get a book on beginning programming (and/or PHP).

We will gladly help you with your questions, but you have to give us something to start with.

I would have to agree with Paul here. You should have the basic concepts of programming down before asking for help. Always glad to help, but you do need to have some what of idea what you are doing.

Sam’s Teach Yourself PHP in 24 Hours, found at http://www.amazon.com/exec/obidos/tg/de … ce&s=books
I highly recommend buying this, it’s very good.

Easy guys it could just be pseudocode. And he is testing his logic.

This is true, but we were not trying bag on him or anything just trying to help him help us and himself. Shouldn’t take anything to heart here…We all had to start somewhere.

Sponsor our Newsletter | Privacy Policy | Terms of Service