Jump to content

PHP not compatible with HTML div box


Eggzorcist

Recommended Posts

Hi there, an unusual problem has occured. It's the first time I've had this issue. I'm printing a loop inside a <section><section> html code which is within the echo of the php code. For some reason when the php echoed variables do not stretch the html <section>. The section stays small as if there were nothing in it.

 

	if (isset($fListData)){
		 echo "<section class='fResults'><ul class='friendlist'>";
		foreach ($fListData as $row){
			$fDisplay = "<li><a href='profile.php?pf=".$row['id']."'>";
			$fDisplay .= $row['firstname']. " " .$row['lastname'];
			$fDisplay .= " (".$row['username'].")</a></li>";
			echo $fDisplay;
		}
		echo  "</ul></section>";

	} else {
	echo "<p>You currently have no friends. Use the search!</p>";	
	}

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.