What is here wrong???


#1

if ( id is in the querystring )
switch id

case 25114:
echo “…html-source…”


#2

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.


#3

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.


#4

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.


#5

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


#6

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.