|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Functions and arrays
Hey! can anyone help me out, for my site i want to create a function which will output an image and error text. So if an error were to comeup itd be:
error(1); I've got this: PHP Code:
Which outputs this error message: Notice: Undefined variable: errorn in /home/zeldax/public_html/tg/testing/error.php on line 12 Im not too sure why its not getting the variable the answer is robably ive messed up but ah well, any help would be appreciated, thanks! Last edited by neolumi : May 26th, 2003 at 01:59 PM. |
|
#2
|
|||
|
|||
|
try this
PHP Code:
__________________
-- Jason |
|
#3
|
|||
|
|||
|
Nope no luck, it comes up with a parse error so thats your "{ }", thanks anyways!!
![]() |
|
#4
|
|||
|
|||
|
did you try it without the { } ?
$errorn[$n] and not $errorn['$n'] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Functions and arrays |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|