The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
Utter noob array question
Discuss Utter noob array question in the PHP Development forum on Dev Shed. Utter noob array question PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 28th, 2012, 12:58 PM
|
 |
Confused badger
|
|
Join Date: Mar 2009
Location: West Yorkshire
|
|
|
Utter noob array question
Guys
Sorry to post such a dim question, maybe I have fried my brain staring at it too long or something; could someone tell me why my script stoips working when I use the code below:-
PHP Code:
$ele["title"] => array(
"type" => "text",
"parameters" => array(
"size" => 50,
"maxlength" => 50,
"class" => "mandatory",
"value" => ""
)
);
Thanks in advance as always!
__________________
The number for UK Emergencies is changing, the new number is 0118 999 881 999 119 7253
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984
|

June 28th, 2012, 01:03 PM
|
 |
Sarcky
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
Error messages would be handy.
the first => should be a =
__________________
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
|

June 28th, 2012, 02:16 PM
|
 |
Confused badger
|
|
Join Date: Mar 2009
Location: West Yorkshire
|
|
Quote: | Originally Posted by ManiacDan Error messages would be handy.
the first => should be a = |
Thanks, as for an error message, there is none, just a blank screen (I will admit that there's no error/warning capture/display at this moment!).
By the way, you got it and now it's working, sorry again for the noob post/question!
Last edited by badger_fruit : June 28th, 2012 at 02:19 PM.
|

June 28th, 2012, 02:20 PM
|
|
|
|
Use your httpd logs.
__________________
There are 10 kinds of people in the world. Those that understand binary and those that don't.
|

June 28th, 2012, 03:20 PM
|
 |
Sarcky
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
You have error_reporting turned off in php.ini. This is a fatal parse error, no amount of error handling would catch it, your PHP was invalid.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|