Jump to content


Photo

Warning: array_merge() [function.array-merge]


  • Please log in to reply
2 replies to this topic

#1 lordphate

lordphate
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 18 August 2006 - 08:04 PM

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/arshem/public_html/dating/functions.php on line 2112

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/arshem/public_html/dating/functions.php on line 2112

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /home/arshem/public_html/dating/functions.php on line 2112

Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/arshem/public_html/dating/functions.php on line 2112


elseif($deg=='all'){
$num=count_network($m_id,"1","num")+count_network($m_id,"2","num")+

count_network($m_id,"3","num")+count_network($m_id,"4","num");

$friend=array_merge(count_network($m_id,"1","ar"),count_network($m_id,"2","ar"),

count_network($m_id,"3","ar"),count_network($m_id,"4","ar"));   <==== LIne 2112
 }


#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 18 August 2006 - 08:10 PM

I'm guessing that your function count_network() probably returns a number and not an array.

The arguments in array_merge(arg1, arg2) need to be arrays - like it says in the error messages
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 lordphate

lordphate
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 18 August 2006 - 08:23 PM

function count_network($m_id,$deg,$mod)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users