Hello, I'm trying to let users know how many times there personal page is viewed. Here is some code.
$colname_Recordset1 = "-1";
if (isset($_GET['user_name'])) {
$colname_Recordset1 = $_GET['user_name'];
}
mysql_query("UPDATE content SET counter = counter + 1 WHERE user_name = $colname_Recordset1");
It works if I remove the WHERE clause but it adds 1 to all rows so the WHERE clause should specify the particular row but it does not work at all. Any thoughts?