|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
First I apologize for posting this here as well as in the thread dedicated to the artical but I didn't get an answer to my last post in there so I also posted this here.
--------------------------------------------------------------------------------- After my last post, and cause of the fact that nobody posted any reply to it I decided to start it from scratch again. While doing the "GetData" function I noticed something unusaul in the code PHP Code:
this if and else statement doesn't have "{" or "}" I am guessing that could be part of the cause of the error (if not the whole cause). But when I looked in the support files I noticed that the code didn't have the brackets either. Was this an error or am I just not as close to being an intermidete user of php as I thought I was Joey |
|
#2
|
|||
|
|||
|
Is the code indented that way in the original file? If so, it may be the problem, as it seems that this if/else block would need the opening and closing braces; however, if the code is meant to be:
PHP Code:
Then you wouldn't need the braces, as they are just single-line if/else statements. My suggestion would be to try placing the braces, and see if there are any immediate effects.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
PHP Code:
when you only have one line on an if, else, while,for statment, you dont need the curley braces. So PHP Code:
becomes PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > in reference to "Building a Members Area" artical |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|