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>"; Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/ 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"]; Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287545 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>"; ???? Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287546 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 Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287547 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>"; Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287549 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'] Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287554 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 Link to comment https://forums.phpfreaks.com/topic/58016-solved-carrying-in-url/#findComment-287555 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.