Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Coding Talk
>
PHP Forum
>
Wrong Datatype?
Link Back
Thread Tools
Wrong Datatype?
11-24-2004, 06:38 PM
#
1
(
permalink
)
Wrong Datatype?
theblt
Super Talker
Posts: 119
Talkupation:
Warning: in_array(): Wrong datatype for second argument in /home/afk/public_html/portal/content/1.php on line 36
36: if ($a_code==2 AND in_array("2" , $_SESSION["c_code"]))
37: {
38: message_display();
39: }
What's going on? It's searching for the value of 2 in the array $_SESSION["c_code"].
When You
Register
, These Ads Go Away!
11-24-2004, 07:00 PM
#
2
(
permalink
)
theblt
Super Talker
Posts: 119
Talkupation:
Once again, solved my own problem.
I was declaring the array as:
$c_code[1]=(Number);
$c_code[2]=(Number);
Now I changed it to:
$c_code=array(1, (Number)), array(2, (Number)
« Reply to
Wrong Datatype?
Previous Thread
|
Next Thread
Webmaster-Talk.com
>
Coding Talk
>
PHP Forum
>
Wrong Datatype?
Thread Tools
Show Printable Version
Email this Page
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Webmaster Resources Marketplace:
Software Development Company
|
Webhosting.UK.com
Web Templates
|
Text Link Brokers
|
Stock Photos
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
Page generated in
0.10407
seconds with
12
queries