Forum Moderators: coopster
//get columns
$id = $row[0];
$company = $row[1];
$url = $row[2];
$description = $row[3];
print("<tr>\n");
print("<td valign=\"top\" rowspan=\"2\">\n");
print("<script language=\"Javascript\">");
print("<!--\n");
print("expnew(\"$newexpire\")\n");
print("//-->\n");
print("</script></td>\n");
print("<td width=\"50%\" class=\"category\" nowrap><strong>$company</strong></td>\n");
print("<td><img src=\"images/pixel.gif\" width=\"10\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
**this is the line in question (works in this site)**print("<td><a href=\"http://$url\" class=\"link\">$url</a></td>\n");
print("<td><img src=\"images/pixel.gif\" width=\"10\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
print("</tr>\n");
The second site builds the page but the links aren't active in NS. Code excerpt for this one is:
// get each row
while($row = mysql_fetch_row($mysql_result))
{
//get columns
$id = $row[0];
$title = $row[1];
print("<tr>\n");
print("<td width=\"20\"><img src=\"../images/pixel.gif\" width=\"20\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
**This is the line in question (will not build a clikable link in NS)**print("<td><a href=\"select.php?article=$id\" class=\"article\">$title</a></td>\n");
print("</tr>\n");
print("<tr>\n");
print("<td colspan=\"2\"> </td>\n");
print("</tr>\n");
I'm tearing my hair out here!! I've tried removing the variable but NS still won't build a link.
NS also puts huge ugly spaces between the rows of the table...why?????
If I need to give more info please let me know. This is kind of an urgent case too, the site's been live like this for two months and I didn't know!
Wanna see the full source for the PHP file and resulting HTML? Or have you had enough? ;)
It works it works it works....
I removed the stylesheet and just like you said, the page worked...so...I looked at the .css file to see what I could tweak, in case you're curious, which I'm sure you are after you were kind enough to spend time looking at my php :)... I had a padding attribute and an align attribute among other things, and after fiddling with various combinations, removing those fixed it *and* it fixed the butt ugly monstrous white spaces between the rows in my table...
Thank you *so* much Air :)