Publico acá el código problemático. Si la respuesta no es fácil, lo publico en Ofertas Laborales.
Esto está publicado en mi sitio
http://netocios.com/lem , donde se ven los links en verde arriba, pero al clikear no pasa nada.
Gracias!
Código PHP:
<html>
<head>
<title><?
include("conx.php");
$sql = "SELECT * FROM admin WHERE aid ='3'";
$result = mysql_query($sql);
$rs = mysql_fetch_array($result);
echo "".$rs['title'];
if(isset($c))
echo " - ".mysql_result(mysql_query("SELECT category FROM categories WHERE category='$_GET[c]'"),0,"category");
?>
</title>
<meta name="keywords" content="<? echo $rs["keyword"];?>">
<meta name="description" content="<? echo $rs["description"];?>"><!--Begin The Form To Add Links To The Website-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style13 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
.style25 {font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 30px; }
.style1 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 10px;
}
body {
background-color: #E8F3FF;
}
-->
</style>
</head>
<body>
<div align="center"><img src="/images/syno.gif" alt="Essay writing tool" width="300" height="129"><br>
</div>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><center>
<p align="center"><span class="style25">Synonymizer Public Link Page</span></p>
<hr>
<p align="center"><a href='addlinksformpublic.php'>Add your link</a> </p>
<hr>
</center></td>
</tr>
<tr>
<td><?
// first, lets get a count of how many links are in the database
// if there aren't any links, then lets generate a user-friendly notice that there aren't any
if (!mysql_num_rows(mysql_query("SELECT rec_id FROM links"))) {
?>
<p style="font-weight: bold; color: red;">There Are Currently No Links In The Database</p>
<?php
}
else{
// if there are links, let's display them!
// first step is to set up the header for each category and the number of links for each one
$result = mysql_query("SELECT category, count(*) AS cant FROM links GROUP BY category");
?>
<div align='center'>
<table border='0' align="center" cellpadding='0' cellspacing='10'>
<tr>
<td>
<?php
// then, lets get a new query and results set so we can display the links from each category
for($i=1;$row = mysql_fetch_array($result); $i++)
{
$category = $row["category"];
echo "<a href=\"?c=".$category."\">".$category." (".$row["cant"].")</a>";
echo !($i%3) ? "</td></tr>\n\n<tr><td>" : " ";
}
?></td>
</tr>
</table>
<span class="style13">Empty categories do not show here </span><br>
<hr>
</div></td>
</tr>
<hr>
<?php if(isset($c)) {
?>
<tr>
<td height="272"><b><font color='000000'>Category: <?php echo $c; ?></font></b>
<?php
$query2 = "SELECT * FROM links WHERE category='$c' ORDER BY name";
$result2 = mysql_query($query2);
while ( $row = mysql_fetch_array($result2))
{
$rec_id = $row["rec_id"];
$name = $row["name"];
$url = $row["url"];
$description = $row["description"];
$count = $row["count"];
// now print the links in this category
?>
<p>
<div style="padding-left:0px; margin-bottom: 10px;"> <strong><a href='<? echo $url; ?>'><?php echo $name; ?></a></strong><br>
<?php echo $description; ?><br>
<b>Url: </b><font color= '008000'><?php echo $url; ?></font><br>
</div>
<?php
}
?>
<hr> </td>
</tr>
<?php
}
?>
<?php }
?>
</table>
<table width="368" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="364"><div align="center">
<p><a href=javascript:window.close() class="style1">close</a></div></td>
</tr>
</table>
</body>
</html>