Hello,
I am writing a PHP script for a control panel system for world of warcraft server. What i am trying to achieve is fairly simple.
The code I wrote stops working, as soon as i made it into a function. I keep getting this error :
Quote:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\WWW\htdocs\wow\cp\test_2.php on line 27
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\WWW\htdocs\wow\cp\test_2.php on line 28
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\WWW\htdocs\wow\cp\test_2.php on line 29
... and so on
|
This is my script :
http://pastebin.com/m40bff675
Any idea why it's throwing that error? thanks in advance for any help.