Jump to content

a while loop in a while loop?


c_pattle

Recommended Posts

I have this code but when I run it I get this error "Parse error: syntax error, unexpected T_WHILE"

 

Can I not have a while loop in a while loop?

 

 

while ( $article_array = mysql_fetch_array ( $article_rs ) ) {$tags = explode(", ", $article_array['article_tags']);$article_tags = "<ul class=\"tags\">"while ($i=0; $i<count($tags);$i++) {	$article_tags .= "<li><a href=\"index.php?tag=" . $tags[$i] . "\">" . $tags[$i] . "</a></li>";}$article_tags .= "</ul>";	echo ("just getting stuff from database here");$article_tags = "";	}

 

Link to comment
https://forums.phpfreaks.com/topic/215378-a-while-loop-in-a-while-loop/
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.