Jump to content

[SOLVED] carrying in url


jakebur01

Recommended Posts

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

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>";

 

????

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

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>";

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.