<? while($blog2 = mysql_fetch_array($blog))
{
$tag = ("select * from blogtag_ref inner join blogtag on blogtag_ref.tag_id = blogtag.tag_id where blogtag_ref.blog_id = '".$blog2['blog_id']."' ") or die(mysql_error());
?>
<table width="1040" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td><div class="blogtitle"><? echo $blog2['subject']; ?></div></td>
</tr>
<tr>
<td><div class="blogdate"><? echo $date; ?></div> //
<? while($tag2 = mysql_fetch_array($tag))
{ ?>
<div class="blogtag"><? echo $tag2['tag']; ?></div> /
<? } ?>
It gives me Warning: mysql_fetch_assoc() expects parameter 1 to be resource
I know my SQL is correct, if I echo the $tag ... and I copy paste in phpmyadmin ... it gives me the results...
is it because I can't put a while inside a while ?