jakebur01 Posted July 2, 2007 Share Posted July 2, 2007 I am having trouble with this. I am trying to make each row active. echo "<a href=\"show_cat.php?catid=".$myrow[catid]."\">"; echo"<TD ALIGN=center><small>"; echo$myrow["isbn"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["catid"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["description"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["title"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["author"]; echo"</small></td>"; echo"</a>"; Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 2, 2007 Share Posted July 2, 2007 What do you mean by "active"? When you are echoing out your lines, you are doing this: echo$myrow["isbn"]; You might want to add a space: echo $myrow["isbn"]; Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 I am having trouble with this. I am trying to make each row active. echo "<a href=\"show_cat.php?catid=".$myrow[catid]."\">"; echo"<TD ALIGN=center><small>"; echo$myrow["isbn"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["catid"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["description"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["title"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow["author"]; echo"</small></td>"; echo"</a>"; ???? Quote Link to comment Share on other sites More sharing options...
MikeDXUNL Posted July 2, 2007 Share Posted July 2, 2007 are you using a correct while statement? like while($myrow = mysql_fetch_array($result)) { echo "<a href=\"show_cat.php?catid=".$myrow['catid']."\">"; echo"<TD ALIGN=center><small>"; echo$myrow['isbn']; echo"</small></td><TD ALIGN=center><small>"; echo$myrow['catid'"]; echo"</small></td><TD ALIGN=center><small>"; echo$myrow['description']; echo"</small></td><TD ALIGN=center><small>"; echo$myrow['title']; echo"</small></td><TD ALIGN=center><small>"; echo$myrow['author']; echo"</small></td>"; echo"</a>"; } $result .. would be the resuly of a mysql_query Quote Link to comment Share on other sites More sharing options...
jakebur01 Posted July 2, 2007 Author Share Posted July 2, 2007 this is whats confusing me. I am having trouble making each row active. The table pulls up no problem. echo "<a href=\"show_cat.php?catid=".$myrow['catid']."\">"; here is more of the code: echo "<TABLE align=center>"; while ($myrow=mysqli_fetch_array($result)) { echo"<tr>"; echo "<a href=\"show_cat.php?catid=".$myrow[catid]."\">"; echo"<TD ALIGN=center><small>"; echo $myrow["isbn"]; echo"</small></td><TD ALIGN=center><small>"; echo $myrow["catid"]; echo"</small></td><TD ALIGN=center><small>"; echo $myrow["description"]; echo"</small></td><TD ALIGN=center><small>"; echo $myrow["title"]; echo"</small></td><TD ALIGN=center><small>"; echo $myrow["author"]; echo"</small></td>"; echo"</a>"; echo"</tr>"; } echo "</table>"; Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 2, 2007 Share Posted July 2, 2007 Instead of using double quotes for each row, try using single. $myrow['isbn'] Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 on the code you wrote you are creating a td link or the column as link?? is that right Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.