开发者

implode warning

开发者 https://www.devze.com 2022-12-17 04:04 出处:网络
I am mov开发者_如何学Pythoning to another server and now I am getting an implode warning \"Invalid arguments passed\", the script was working on the old server, does someone know what I am doing wrong

I am mov开发者_如何学Pythoning to another server and now I am getting an implode warning "Invalid arguments passed", the script was working on the old server, does someone know what I am doing wrong??? My code is:

$query ="SELECT  keywords,keywords1,keywords2,keywords3 FROM Table "; 

$result = mysql_query($query); 

while ($row = mysql_fetch_array($result)){
    $arraykeywords[]=$row['keywords']."".$row['keywords1']."".$row['keywords2']."".$row['keywords3'];
}

$arraykeywords=implode("",$arraykeywords);
$arraykeywords=explode("/",$arraykeywords);

sort($arraykeywords);

$arraykeywords=array_unique($arraykeywords);

foreach($arraykeywords as $keywordsarr){}

Thanks in advance. Hans


I see implode works on $arraykeywords variable which is populated from DB. The most likely cause is that now your db query returns different results or no results at all. You can check that by dumping appropriate variables with var_dump();

One of the more common problems is forgetting to move database data :)

0

精彩评论

暂无评论...
验证码 换一张
取 消