I have used inner join in my php page. Problem is when I fire query in mysql query browser it fetches nearly 6 rows. and all are correct but when I use same in my php page it fetch only one row. That is only one value..
while($row=mysql_fetch_array($result1))
{
while ($resultpoet = mysql_fetch_array($poet)) {
?>
<tr>
<td><?= $iCounter?>
. </td>
<td><? if(($row['roman']=="")&&($row['hindi']=="")) { ?>
<?=$row['name'] ?>
<? } else { ?>
<a href="sview.php?title=<?=$row['sid'] ?>">
<?=$row['name'] ?>
</a>
<? } ?></td>
<td width="216"><?
if($resultpoet['pstatus']!='u')
print '<a href="pview.php?title='.$resultpoet['pname'].'">'.$resultpoet['pname'].'</a>';
else
print $resultpoet['pname'];
?>
</td>
<td width="135"><?=$row['category'] ?></td>
<td width="67"><a href="songtitle_action.php?title=<?=$row['sid'] ?>"> Edit </a>
<input name="check[]" type="checkbox" value="<?=$row[s_id]?>" id="checkbox_<?=$row[sid]?>"></td>
<td width="75"><? if(($row['roman']=="")&&($row['hindi']=="")) { ?>
<a href="song_add_lyrics.php?title=<?=$row['sid'] ?>"> Add Lyrics</a>
<? } ?></td>
</tr>
<? }
$iCounter++;
}?>