Hi,
I enter a query mysql going to count visits to each detail page in this way:
<%php%>
$db_host = "";
$db_user = "";
$db_password = "";
$db_name = "";
$db = mysql_connect($db_host, $db_user, $db_password);
mysql_select_db($db_name, $db);
$query="UPDATE idx_link set hits2 = hits2 + 1 where link_id = '<%$link_id%>'";
$ris=mysql_query($query, $db);
<%/php%>
The problem is that the variable "$link_id" is not valued and the number of visits is not increased.
I tried to manually assign the value to $link_id and in this way it works.
$query="UPDATE idx_link set hits2 = hits2 + 1 where link_id = '1210'";
Why the variable $ link_id is not valued?
Where mistake?
Thanks


