Reply
Wrong Datatype?
Old 11-24-2004, 06:38 PM Wrong Datatype?
theblt's Avatar
Super Talker

Posts: 119
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"].
theblt is offline
Reply With Quote
View Public Profile Visit theblt's homepage!
 
When You Register, These Ads Go Away!
Old 11-24-2004, 07:00 PM
theblt's Avatar
Super Talker

Posts: 119
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)
theblt is offline
Reply With Quote
View Public Profile Visit theblt's homepage!
 
Reply     « Reply to Wrong Datatype?
 

Thread Tools

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10407 seconds with 12 queries