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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.