Error when trying to add listing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hbsnam
    New Member
    • Mar 2010
    • 1

    #1

    Error when trying to add listing

    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,$re s)) {
    if (in_array(2,$re s)) {
    if (in_array(3,$re s)) {
    if (in_array(4,$re s)) {
    if (in_array(5,$re s)) {
    if (in_array(6,$re s)) {
    if (in_array(7,$re s)) {

    Thanks
    Hans
    Attached Files
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Can we see the code please?

    The second argument to in_array() needs to be an array.

    Comment

    Working...