Jump to content

implode error help


MDanz

Recommended Posts

i keep on getting this error..  Warning: implode() [function.implode]: Invalid arguments passed in...

 

$rowinformation is an array, i don't see where the problem is.

 

	for($v=1;$v<11;$v++) {
	$rowinformation = $_SESSION[$v];
	echo "<div style='display:none;' id='$v'>".implode("<p> </p>",$rowinformation)."</div>"; // outcome string information

	}

Link to comment
https://forums.phpfreaks.com/topic/237934-implode-error-help/
Share on other sites

Are you sure about which line number and file name the error is occurring at?

 

We only see the information you supply in your post and based on what you have shown, you don't have an array, or you wouldn't be getting an error message about it.

Link to comment
https://forums.phpfreaks.com/topic/237934-implode-error-help/#findComment-1222667
Share on other sites

i put values in the array like this

 

$_SESSION[$v][] = "<div class='informationtop'></div>
		<div class='informationmiddle'><p>Added by <b>$theuser</b></p><p>$name</p><p>$reason</p></div>
		<div class='informationbottom'></div>";

 

if i print_r($_SESSION[1]);  the array has the correct values.  but for some reason the error is showing up.

Link to comment
https://forums.phpfreaks.com/topic/237934-implode-error-help/#findComment-1222671
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.