![]() |
errors help
ok so i have been plodding a long with a big php file now and input some stuff...
PHP Code:
and great this worked! kind of.. it puts the file alright infact it out puts everything alright from what i can see only when the data is submitted and this code is extracted it outputs these errors... Notice: Undefined variable: stringrandom in E:\domains\s\sb0t.tentun.co.uk\user\htdocs\index.p hp on line 610 Notice: Uninitialized string offset: 36 in E:\domains\s\sb0t.tentun.co.uk\user\htdocs\index.p hp on line 610 Notice: Undefined variable: stringrandom in E:\domains\s\sb0t.tentun.co.uk\user\htdocs\index.p hp on line 610 Notice: Uninitialized string offset: 36 in E:\domains\s\sb0t.tentun.co.uk\user\htdocs\index.p hp on line 610 line 610 which would be the } after return $stringrandom; Anyone got any idea what would be the fix to this to where i have gone wrong? much appreciated thanks ^^ |
put this line $stringrandom = ""; inside the function definition. instead of out where the function can't see it.
|
| All times are GMT. The time now is 07:21 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0