473,322 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Error when trying to add listing

1
Getting following error when trying to add / submit a listing

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 175

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 179

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 183

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 187

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 191

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 195

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/namibiac/public_html/addlisting.php on line 199

Have checked the problem lines, all are as follows:
if (in_array(1,$res)) {
if (in_array(2,$res)) {
if (in_array(3,$res)) {
if (in_array(4,$res)) {
if (in_array(5,$res)) {
if (in_array(6,$res)) {
if (in_array(7,$res)) {

Thanks
Hans
Attached Images
File Type: jpg namcar1.jpg (24.1 KB, 130 views)
Mar 30 '10 #1
1 1453
Markus
6,050 Expert 4TB
Can we see the code please?

The second argument to in_array() needs to be an array.
Mar 30 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Raphael Gluck | last post by:
Hi I've been trying to hand code my pages, after failing in a WSYWYG editor and giving up. I'm almost done with the page checking, it's just i'm having a Wend error Microsoft VBScript...
1
by: Venkat | last post by:
I just installed Visual Studio.Net 2003 and that is supposed to add that asp.net 1.1 extension. I got an error message while opening ASP.NET project.Error is : "visual studio.net has...
2
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
19
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
2
by: Martin Gernhard | last post by:
Hi, I'm trying to use expression templates to calculate values at compile time. Doing it with just one parameter is no problem: ///Begin Listing 1 #include <iostream> using namespace std; ...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
5
by: jain236 | last post by:
HI every body, i am always getting the following error while parsing a directory . i am reading a directory by doing ls and trying to find out the name,type,size, mtime and mode of files from...
1
by: mimranp | last post by:
Hi all i m using visual developer 2008 i m using xhtml1.1 in that .i m reciving so much error when check in online input w3 standard(C# language code behind) <%@ Page Language="C#"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.